Skip to main content
Cyber Security

Cyber Threat Landscape and Cyber Attacks

Published: 2026-08-16
Level: postgraduate
Audience: Postgraduate students in Cyber Security

Cyber Threat Landscape and Cyber Attacks

8.1 The Exam Blueprint and Today's Roadmap

8.1.1 The Exam Pattern

This session opened with the exam blueprint, because every topic that follows needs to be studied with the exam format in mind. The syllabus for the internal examination covers chapters 1 through 4 only, and the topics on the four chapter handouts cover roughly 99% of what you need — you will not be tested beyond them.

Hook: Before learning a single attack or control, ask the question every student should ask first: how is this going to be examined? Knowing that the paper tests application rather than recall changes how you study — you practise mapping situations to concepts, not memorizing definitions word by word.

The exam is worth 30 marks. The pattern is five questions, each carrying six marks:

Worked example — the total marks:

The arithmetic behind the pattern, step by step:

  • Number of questions: 5.
  • Marks per question: 6.
  • Total: 30 marks.

Sense-check: the exam is described as "30 marks," and the arithmetic produces exactly 30 — the two numbers agree, so the pattern is internally consistent.

The professor splits the five questions into three theoretical questions and two scenario based questions. The scenario questions present a situation — an attack that happened, a framework being followed — and ask you to explain what the threat is, which vulnerability caused it, or which part of a framework applies. Exam note: expect the practical questions to test how you apply the knowledge from all four chapters, not recall.

There is one more structural detail worth noting. Out of the four chapters, one theory question comes from each chapter, which means one chapter will not have a theory question. The stated breakdown is 70% theoretical and 30% practical — three theoretical and two scenario questions out of five is a 60/40 split, which does not match the 70/30 numbers exactly. Both figures are preserved exactly as the professor stated them, with the arithmetic spelled out so the conflict is visible rather than silently "fixed": three of five questions is 60%, and two of five is 40%, so the 70/30 percentages and the 3-of-5 plus 2-of-5 question counts cannot both be true at once. The five-question pattern is the reliable one to study from; if the percentages appear in an exam answer, say the pattern is three theoretical and two scenario questions — the counts are what the question paper will follow.

The answers are written by hand and the exam is closed book, the same mode used in the other subjects. Whether you draw figures or diagrams is entirely up to you — you choose how to present so that the person evaluating your paper is impressed. The real objective is showing that you understand the topic and can present the expected answer. Exam note: presentation choices are free marks, so write in a way that shows your understanding.

Exam note: lock in the pattern first — five questions × six marks = 30 marks, with three theoretical and two scenario based questions. Scenario questions test application across all four chapters: given an attack or a framework, name the threat, the vulnerability behind it, or the framework stage that applies. One theory question comes from each of the four chapters, so one chapter has no theory question. Both the 70/30 percentage split and the 3-of-5 plus 2-of-5 counts were stated; the counts are the reliable figure.

8.1.2 The Course Schedule and Where the Marks Live

The marks for this subject live in more than one place, and the professor separated them deliberately so students do not mix up the weights:

  • Quiz one is done and carries a 5% weightage.
  • Quiz two will come after chapter five is finished, covering the remaining topics.
  • The competency examination is worth 50 marks.
  • The internal exam itself sits in the schedule after the chapter five content.

Exam note: keep the quiz and competency weights separate in your mind — quiz one at 5%, the internal exam at 30 marks with the five-question pattern, and the competency examination at 50.

8.1.3 Assignments: Timing Advice

Assignments carry marks that are tagged to them, and the marks are uploaded by the end of the following week so the internal assessment records are complete. The practical advice is simple: complete your assignments before the syllabus is finished. That is the ideal time so you do not lose assignment marks unnecessarily. There is no per-assignment deadline; the goal is simply to have everything submitted before the course content ends.

Pitfall: do not treat "no per-assignment deadline" as "no deadline." The marks disappear once the syllabus finishes, so the real deadline is the end of the course content. Plan to clear each assignment within a week of it being given.

8.1.4 Student Questions About the Exam Setup

Q: Is the assignment shared in the class sessions for evaluation, or will we have a separate assignment?

A: There is no separate assignment for evaluation. The internal examination covers everything: five questions worth six marks each, three theoretical and two scenario based. The assignments and the exam are not two different tracks — the exam pattern is the single evaluation model.

Q: Is the mode of answer submission typed or written?

A: It is written format and a closed book examination, the same as the other subjects. You cannot rely on lookups during the paper, so the revision target is understanding plus the ability to reproduce explanations by hand.

Q: Can you explain the pattern and type of questions?

A: Five questions, each carrying six marks. Three are theoretical and two are scenario based, where you apply what you have learned across the four chapters. A scenario question might describe an attack that happened and ask which vulnerability enabled it and which control to recommend.

8.2 The Threat Landscape

8.2.1 What "Threat Landscape" Means

Hook: why does the same security advice work in one company and fail in another? Because the threat landscape — the set of threats that can actually hurt an organization — depends on the organization itself.

A threat landscape (the full set of possible threats that an organization must consider) is evaluated against the given context. The context is everything about your environment: the organization's network, its servers, its databases, its infrastructure, and its endpoint machines — whether they run Windows and which version, or macOS and which version. All of this information is gathered so you can understand the risks and vulnerabilities that could affect the organization.

Why consider all that context? Because the same threat means different things on different setups. The landscape is not an abstract list of attacks; it is the answer to the question "which of these threats can actually hurt this organization, with this configuration?" Evaluating every possible threat in context is the definition that matters for this course.

Intuition: think of the landscape as the weather report for a specific city, not a forecast for the whole country. A rainstorm (a threat) matters only if it can reach your roof — your network, your servers, your operating systems. A system running an old Windows version has a different landscape from a fully patched macOS fleet, even though both face the same global list of attacks.

8.2.2 Threat Landscape, Threat Modeling, and Threat Intelligence — Three Different Ideas

The terms threat landscape, threat modeling, and threat intelligence are easy to mix up, and the class spent time separating them:

  • Threat intelligence is about gaining information. You constantly check for all possible threats that could happen to your network or infrastructure, gathering that information from different sources — open source such as OSINT, or paid resources you purchase. Once you know the intelligence, you examine your own infrastructure: are we prone to these attacks? Do we have enough controls? Do existing controls need improvement? Do we need new controls? Those discussions follow from the intelligence.
  • Threat modeling is about identifying the threats to a specific target system. You model, or name, the threats that can happen to that system, then reason about them.
  • Threat landscape is the scenario in which attacks can happen — the field of possible threats combined with your environment.

The three ideas differ in what each one does with threats, as the comparison shows:

Dimension Threat intelligence Threat modeling Threat landscape
What it does Gathers information about possible threats Names/identifies threats to a specific system Defines the scenario where attacks can happen
Main question What threats exist out there? Which threats can hit this system? Which threats can hurt this organization, given its context?
Typical sources OSINT, paid threat feeds, vendor reports Analysis of one target system Environment data: network, servers, endpoints, OS versions
Output Knowledge about threats A list/model of threats per system The risk picture of the organization

Real-world: OSINT (open source intelligence) is a concrete example of a threat intelligence source; companies also buy paid threat feeds to get richer data.

Q: What is the difference between threat landscape, threat modeling, and threat intelligence?

A: The landscape is the scenario where attacks can happen, given the context of your organization. Threat modeling is identifying the threats to a target system. Threat intelligence is gathering information about possible threats from sources, open source such as OSINT or paid resources. The class needed this contrast because the three words sound alike but answer different questions: intelligence gathers, modeling identifies, landscape situates.

8.2.3 Why Attackers Attack: The CIA Objective

Every threat actor, from whatever source, ultimately aims to impact the CIA triad:

  • Confidentiality — protecting data from unauthorized reading or access. A confidentiality breach means someone who should not see the data has seen it.
  • Integrity — ensuring there is no unauthorized modification of data. An integrity breach means data has been changed, and you can no longer trust it.
  • Availability — keeping systems and services reachable by legitimate users. An availability breach means the service exists but the people entitled to use it cannot reach it.

Making availability "down" means ensuring legitimate users cannot access the business services they need. Attackers do this by making the server busy — for example a denial of service (DoS) attack from a single system, or a distributed denial of service (DDoS) attack launched from multiple systems at once. The overall objective of the actors is always some impact on the CIA triad.

Exam note: when a scenario question describes an attack, the first classification step is mapping it to the CIA objective: does the attack expose data (confidentiality), alter data (integrity), or block access (availability)? Many attacks aim at more than one, but naming the primary objective earns the first mark.

8.2.4 Risk and the Four Ways to Respond to Risk

Risk is a combined calculation: the probability of a threat exploiting a vulnerability, multiplied by the impact once the exploitation succeeds:

The professor described risk verbally as "the probability of your threat exploiting the vulnerability and once it has been exploited successfully then how much is the impact" — the multiplication is the standard way to combine likelihood and impact, and it matches the reference treatment: risk equals the probability of the threat occurring times the cost of the loss to the organization. The landscape exists so this risk becomes visible and manageable.

In words, the formula says: a threat that almost never succeeds gives low risk even if the impact would be severe, and a threat with small impact gives low risk even if it happens often. Both the probability and the impact have to be high for the risk to be high.

Risk management has stages: first risk identification — find the risk; then risk assessment — measure how big it is; then risk response — decide what to do. There are exactly four ways to respond to a risk, and the class worked through them:

  1. Risk transfer — move the risk elsewhere, for example by opting for insurance. The risk still exists, but someone else carries the financial loss.
  2. Risk mitigation — reduce the risk by implementing the necessary compensating controls so it stays within your acceptable level, your risk appetite.
  3. Risk avoidance — stop the action or transaction that creates the risk. The risk disappears because the activity disappears.
  4. Risk acceptance — accept the risk when nothing can be changed and the business must continue anyway. The risk is consciously retained and evaluated against the business case.

The health checkup analogy ties the four responses together. When you do a health checkup you learn your health risks. If you are overweight, you mitigate by following a diet plan — that is implementing compensating controls to bring risk within acceptable range. If your cholesterol is too high because of certain food, you avoid that food — risk avoidance. If age increases the chance of a heart attack, you transfer the financial risk by buying a one crore or two crore insurance policy so your dependents are protected. And the last case: a business whose job is delivering goods from home to home always faces the risk that a delivery person meets with an accident. Can the business stop doing business? No — it accepts the risk and evaluates it against the return on investment and the controls already implemented. These are the four methods: mitigate with compensating controls, transfer with insurance, avoid by stopping the activity, accept because the business must go on.

Q: What are the four ways to respond to risk?

A: The class first kept repeating avoid; the fourth option is risk acceptance, not another form of avoidance. You can transfer the risk by insurance, mitigate it by implementing controls, avoid it by stopping the activity, or accept it — risk acceptance — when the business must continue despite the risk. The professor flagged that the class repeated "avoid" until the fourth option, acceptance, was confirmed — so when an exam question offers controls or responses to choose from, check that you have not collapsed the list to three.

Exam note: when a question offers controls to choose from, remember this full set — students in the session kept repeating "avoid" and forgot acceptance, the fourth option.

8.2.5 The Growing Attack Surface

The attack surface is the set of chances we give attackers to exploit us. The class discussed metrics shared by a top vendor showing how the cyber attack surface keeps increasing: more smartphones, more IP connected devices, more data being transferred. Each of these adds exposure. The more surface you expose, the more opportunities exist for a threat to exploit a vulnerability.

Pitfall: organizations often protect the "important" servers and forget the growing edge of the surface — personal smartphones connecting to office email, IoT devices on the same network, backups stored in new places. Every new connected device is a new door; the surface grows even when you did not consciously open it.

8.2.6 The Controls We Use: Categories and Functions

To protect against the landscape, an organization must build a proactive strategy out of controls. Controls are classified in two independent ways — the two classifications answer different questions, so a single control has both a category and a function.

By category, there are three types:

  • Technical controls — using technology to implement the control.
  • Physical controls — something you can see physically.
  • Administrative controls — organization policies and procedures.

By function, a control can be:

  • Preventive — stops something from happening in the first place.
  • Detective — detects something after it happens, as early as possible.
  • Deterrent — makes the person attempting an attack afraid, discouraging them.
  • Corrective — recovers from something after it has happened.

Putting the two classifications together:

Preventive Detective Deterrent Corrective
Technical Firewall blocks a port IDS raises an alert Pop-up warning on sensitive sites Antivirus cleans a detected infection
Physical Locked server room door CCTV records entry Visible cameras in the office Spare hardware replaces failed equipment
Administrative Password policy enforced at login Log reviews spot odd access Disciplinary policy for misuse Incident response plan restores service

Exam note: when the exam asks which control you recommend, prefer the preventive one — a control that prevents something is always better than one that only detects or corrects after the fact.

Q: What are the three types of controls by category?

A: Technical controls that use technology, physical controls you can see, and administrative controls that are organization policies and procedures.

8.2.7 Cost–Benefit: We Recommend, the Business Decides

You cannot simply implement a control because it sounds good. Before deploying any control you do a cost benefit analysis: how much does this control cost, and how much benefit does the business get?

Worked example — a control priced above its asset:

The class example: a control that costs ₹20 lakh (twenty lakh rupees) protecting an asset worth ₹10 lakh (ten lakh rupees).

  • Cost of the control: ₹20 lakh.
  • Value of the protected asset: ₹10 lakh.
  • Net benefit: ₹10 lakh negative — the control costs twice what it protects.

Sense-check: paying ₹20 lakh to protect ₹10 lakh of asset means the protection itself loses money; the arithmetic confirms the control is not justified, exactly as concluded in class.

A control that costs 20 lakhs does not make sense when the asset it protects is worth only 10 lakhs. That is the arithmetic of the example used in class: cost outweighs the asset value, so the control is not justified.

As a cyber security practitioner you only recommend the control, listing the options with pros and cons — the cost, the benefits — and it is the business that takes the final call. This division of responsibility matters: your job is analysis, their job is decision.

Pitfall: a security engineer who insists on "the most secure option" without the cost picture loses credibility. The professional move is to present options with their costs and benefits and let the business decide — and to remember that the business can accept a risk you would rather mitigate, which is a legitimate response, not an oversight.

8.2.8 Everyday Actions That Shrink the Landscape

Implementing controls reduces the threat landscape, and shrinking the landscape reduces the chance of the infrastructure — network, servers, databases — being exploited. Common ways to do this:

  • Keep software and systems up to date with security patches. Some patches add functionality to the existing platform; other patches exist specifically to improve the security posture of the system. Both kinds matter.
  • Enforce strong, unique passwords for online accounts. This ties into identity and access management (IAM). From the earlier sessions: role based access control, rule based access control, attribute based access control, and ACL based access control are the different mechanisms to restrict who can access your systems, and the more advanced ones are least privilege and need to know.
  • Make attackers pass your authentication first. The triple A: authentication is proving your identity — you log in with username and password every day; authorization is the level of access granted after login, restricted by your job type or department; accountability ensures non-repudiation, so tomorrow you cannot say "I did not do that activity" — logs trace exactly how an incident happened.
  • Filter email from unknown senders. Companies check email security mechanisms such as SPF and DMARC: when an email enters, the checks decide whether it goes to your inbox at all.
  • Back up data regularly. In the CIA triad, one of the important criteria is availability of data. If the primary server is down, you recover from the secondary — that is what regular backups enable. "Regular" depends on business need: daily backups, weekly backups, whatever the business requires.

Recap + bridge: the threat landscape is the scenario of attacks for your specific environment; the three "threat" terms answer different questions; every attacker targets the CIA triad; risk is probability times impact; and there are exactly four responses — transfer, mitigate, avoid, accept, with acceptance the one students forget. Controls shrink the landscape, so the next topic is where weaknesses come from: vulnerabilities.

Real-world: the shrinking routine above is the daily work of real security teams — patch cadence, IAM reviews, email authentication (SPF/DMARC), and backup drills are standard items on an enterprise security checklist, and vendors publish threat landscape reports precisely so teams know which part of the surface to watch next.

8.3 Vulnerabilities

8.3.1 What a Vulnerability Is

Hook: why does a system get hacked even when it "has everything updated"? Because a vulnerability is a weakness in the system itself — and every system carries some weaknesses.

A vulnerability (a security weakness in your system) can live in the system, the network, the application, the database, or any infrastructure component. A weakness can arise from how you configure things: for example, an insecure configuration on a Windows server can itself become a vulnerability — it is a vulnerability created by improper secure configuration.

The professor's analogy: vulnerabilities are like cracks in a wall — they provide attackers with an entry point to access your data or disrupt your systems. The wall is your defense; each crack is a place where the defense is thinner. The security engineer's job is to find the cracks before the attackers do, and to seal them — by patching, configuring properly, and training users.

Intuition: picture a house you are responsible for. The wall is solid most places, but one window latch is broken, one door has a spare key under the mat, and one basement window is never locked. None of these is an attack — each is a vulnerability. An attacker only needs one open path, so the strength of the house is set by its weakest entry point, not its strongest wall.

8.3.2 Where Weaknesses Come From

Weaknesses can happen in four main places:

  • Software — flaws in the programs you use; weaknesses in an application are application security issues. Bugs in code, insecure libraries, and missing input checks all belong here.
  • Hardware — flaws in hardware components. Real-world: Intel has released important patches for vulnerabilities in its chips that hackers could exploit to attack your system. Your work is never just software; the hardware supporting it matters too.
  • Misconfiguration — improper configuration settings. A Windows system with the guest account enabled without a password, or a configuration that makes it easy for hackers to log in remotely, are misconfigurations. Security engineers harden systems so configuration issues stay minimal.
  • Human error — weaknesses in the human. Social engineering is the classic example: someone sends a spam email pretending to be from your institution, and if you do not carefully check which email address it came from, the social engineering succeeds easily.

Pitfall: students usually list software and hardware flaws and stop. The four-source list is only complete with misconfiguration and human error — and in practice, misconfiguration and human error cause a large share of real breaches. A fully patched system with a default password on a router is still vulnerable.

8.3.3 Application Vulnerabilities: OWASP Top 10, SAST, and DAST

For applications, the reference list of common flaws is the OWASP Top 10 — the Open Web Application Security Project's list of the most common vulnerabilities. SQL injection, cross-site scripting, and CSRF are all entries on that list. Most applications undergo testing against these flaws as they are developed.

The testing comes in two forms, and the two differ in when and how they look for flaws:

Dimension SAST DAST
Full name Static application security testing Dynamic application security testing
How it works A person studies each line of code one by one The application is run as if in a proxy environment and exercised with tools
When it runs On the code, without executing the app On the running application, by sending requests
What it finds Flaws visible in the code itself Flaws visible in behavior under attack-like input
  • SAST — static application security testing — a person studies each line of code one by one to identify vulnerabilities.
  • DAST — dynamic application security testing — the application is run as if it were in a proxy environment and exercised with tools to find issues.

Real-world: the tools in this space include the Acunetix web scanner, and Qualys, which can perform network scans to find loopholes in your network and can also run both authenticated and unauthenticated scans to find web application security issues. The scanners work from the list of known common vulnerabilities and try to identify the loopholes in the application you developed.

8.3.4 From SDLC to Secure SDLC

Why are there so many vulnerabilities in applications? Because an application is a software product built through the SDLC — the software development life cycle — and in the classic cycle, from gathering requirements to deploying code to production, there is no step where security is added. You gather requirements, develop the code, test it with unit testing and regression testing, validate in pre-production, and deploy to production — security never appears. That missing piece is the reason applications ship with vulnerabilities.

The fix is the secure SDLC: inculcate security requirements into the cycle from the start. In the requirement phase itself, you list the regulatory requirements and the security requirements so attacks are minimized. The same idea is called security by design, and privacy should be designed in too — privacy by design — so privacy is part of application development rather than an afterthought.

The difference in one line: the classic SDLC asks "does it work?" at every stage; the secure SDLC asks "does it work and is it safe?" at every stage — with security requirements written down at the requirements phase instead of bolted on after deployment.

8.3.5 Common Vulnerabilities in Real Organizations

The common vulnerabilities that appear in most organizations:

  • Outdated software — the patch was released but not installed.
  • Weak passwords — the most common control organizations implement.
  • Insecure configurations — default passwords left on deployed devices, ports left open by default.
  • Phishing scams — phishing emails and their variants, including spear phishing when specific people are targeted.
  • Missing security awareness — all the technical controls in the world are weak without user awareness, covered below.

Worked example — outdated software:

Most companies have a security team that runs monthly scans and quarterly scans, using tools like Qualys and its reports. A typical finding: the installed version is 1.2 while the later version is 3.4 — you need to update.

  • Scan report: installed version 1.2.
  • Latest available version: 3.4.
  • Action: update the installed system to 3.4, because the older 1.2 is missing the security fixes that later versions carry.

Sense-check: a scan that compares the installed version against the vendor's latest is exactly what turns "outdated" from a feeling into a number; the 1.2-to-3.4 gap is the measurable finding the team clears.

Outdated software gives hackers an easy platform to exploit your network.

Worked example — weak password controls:

Passwords should be complex, should not repeat any of the last six passwords, and should have a minimum length of 16 characters. The reason for the strength: automated tools try every combination of dictionary words to bypass the password control.

  • Minimum length: 16 characters — long enough to make dictionary-based guessing impractical.
  • Password history: the last six passwords cannot be repeated, so users cannot rotate between two favorites.
  • Companion controls: CAPTCHA after two wrong entries, to confirm a human rather than an automated script; account lockout when the password is wrong more than three times; some companies send the unlock request to the manager, who must trigger a reset — common in the financial sector; others use security questionnaire hints before allowing a password reset.

Sense-check: the password policy and its companions attack the same vulnerability from both sides — the policy makes the password hard to guess, and the CAPTCHA/lockout controls slow down the automated tools that would guess it anyway.

Lack of proper password controls is a common vulnerability. Insecure configurations: ignoring default passwords on deployed devices such as Cisco or Juniper routers; ports enabled by default. When a port must stay open for business, you should scan ports, identify which are open, check the business need, and close what is not required — you are closing doors so fewer vulnerabilities can be exploited.

Exam note: a scenario question can be built exactly on this list — the professor's example: "this attack happened — what is the common vulnerability that resulted over this, and what is your recommendation to overcome it?" Practise mapping an attack description to the vulnerability that enabled it and to a concrete recommendation.

Exam note: for the scenario-question format, practise the three-step answer: name the vulnerability that enabled the attack (outdated software, weak password, insecure configuration, phishing, or missing awareness), explain the connection to the attack described, and recommend the concrete control that closes it.

8.3.6 Hardening and Benchmarks

To reduce configuration vulnerabilities, security engineers harden systems so there are minimal issues from a configuration perspective. Some companies scan your entire system the moment you leave the organization network and connect from home; only when the scan passes with a green check can you connect to the corporate network.

For guidance on what secure configuration looks like, the industry references benchmarks: CIS benchmarks and SANS hardening guides. You give them your OS or database version, and they give you the best ways to configure — and harden — that system or database.

8.3.7 Security Awareness: The Human Layer

If all controls are in place but there is no user awareness, the controls do not make much sense. Every company makes security training and privacy training part of employee onboarding, alongside other mandatory trainings. Every year employees must complete the training again, because it is needed for organization audits — ISO audits, SOC 2 audits. The human layer is a control like any other, and it is the one that protects against social engineering.

Recap + bridge: a vulnerability is a weakness in software, hardware, configuration, or the human; application weaknesses are catalogued by the OWASP Top 10 and hunted with SAST and DAST; the classic SDLC ships without security, so the secure SDLC designs it in; the recurring real-world list is outdated software, weak passwords, insecure configurations, phishing, and missing awareness. Weaknesses are only half the story — the next section walks through the attacks that exploit them.

Real-world: the vulnerability-to-recommendation loop is the daily routine of vulnerability management teams — Qualys-style scans on a monthly/quarterly cadence, CIS-benchmark hardening checks before devices join the network, and annual ISO/SOC 2 audit evidence driven by completed awareness training.

8.4 Common Cyber Attacks

8.4.1 Phishing

Phishing uses deceptive emails or websites designed to steal your personal information. The attacker crafts an email so it looks like it comes from a legitimate source, and below it sits a URL — and clicking that URL is the phishing attack. The email technique targets people to click the link. The variant spear phishing narrows the target: if you are targeting only specific C-level executives, or filling out a list of specific business people and sending them spam, it is spear phishing.

Intuition: phishing is bait — a lure that looks like a real offer (a bank notice, a password-expiry warning) with a hook hidden in the link. Ordinary phishing casts the bait at everyone; spear phishing studies one person or one role and customizes the bait so the target bites.

Pitfall: the danger is not the email itself — it is the click. Even a well-trained user can be caught when the sender name and logo look right; the defense is to check the actual sender address and think before clicking. Attackers also use urgency ("your account will close today") to make you skip that check.

8.4.2 Malware: Virus, Trojan, and Adware — Code with Different Objectives

Malware covers adware, trojans, and viruses — all of them are sets of lines of code, and every code has some objective. They are different from each other, not synonyms:

  • A trojan horse installs itself on your machine and whatever activities happen in your system are sent to the person who made sure it was installed — a remote person receives your activity.
  • A virus has the objective of damaging system files and making the system slow.
  • Adware and other malware variants complete the picture; a keylogger is another example — every key you type on the keypad is sent to the remote person.

Real-world: spyware and remote access trojans are everyday versions of this pattern in modern attacks.

Q: Are virus, malware, and trojan all the same?

A: They are different, but all are built from lines of code and every code has an objective. A trojan horse installs itself and sends your activity to the attacker. A virus damages system files and slows the system down. "Malware" is the family name for all of them — virus and trojan are two specific members of the family, each with its own objective, not interchangeable names for the same thing.

8.4.3 Denial of Service and Distributed Denial of Service

A denial of service (DoS) attack makes a service unavailable — unavailable to the legitimate users who are really eligible to view or access the services they intend to use. The way to do that is to keep making the server busy. There are several ways to make a server busy; two are examined here.

The ping of death continuously sends ping packets — ICMP packets — so the server is busy responding to them. When the attack comes from a single system it is a DoS attack; when multiple systems, distributed, target one server, it is a distributed denial of service (DDoS) attack. Example: an attacker sends multiple access requests to the organization's CRM software to make it so busy that legitimate professionals cannot work.

The SYN flood abuses the TCP three-way handshake. To establish a connection, the client sends a SYN packet, the server replies with SYN plus acknowledge, and the client sends a final acknowledgement — only then does data transfer happen. Instead of completing the three transactions, the attacker keeps sending SYN requests, leaving connections half open and continuously making the server busy responding. The objective is the same: make the server too busy to respond to legitimate requests.

Worked example — the TCP three-way handshake and the SYN flood that abuses it:

The normal connection setup has exactly three steps:

  1. The client sends a SYN packet: "I want to connect."
  2. The server replies with SYN-ACK: "I heard you, ready to connect."
  3. The client sends the final ACK: "Confirmed." — and only now does data transfer begin.

The attack version: the attacker sends SYN after SYN but never sends the final ACK. Each incomplete exchange leaves a half-open connection, and the server holds resources (memory and connection table entries) waiting for the ACK that never arrives. Repeat this thousands of times and the server's connection table fills up: the server is so busy maintaining half-open requests that legitimate clients cannot complete their handshakes.

Sense-check: a real SYN flood does not need any data — it only needs to keep the server in step 2 of the handshake, which matches the definition of DoS: the service exists, but legitimate users cannot use it.

8.4.4 Ransomware

Ransomware is one of the most common attacks of the last two years — a topic that could take hours on its own given the generations of ransomware hackers have developed. The core definition: ransomware is a specific type of malware that encrypts your data and demands a payment — the ransom — to decrypt it. That is the whole business model: your data is locked, and the decryption is sold back to you.

Intuition: ransomware is a digital hostage situation — the attacker does not steal your data and leave; the attacker locks the data with encryption and holds the key for ransom. Because the data is only locked, not destroyed, the victim faces a choice between paying and losing access to the business data.

8.4.5 Man-in-the-Middle Attacks

A man in the middle (MITM) attack inserts an attacker between two parties. Person A sends data to person B; if the data is not encrypted, person C sits in between and, using scanning tools such as Wireshark, captures the data that is on the wire and reframes it. That is why companies insist that data in transit should be encrypted: when data travels from source to destination in encrypted form, the plain text becomes ciphertext, and to decrypt it the attacker needs the key. That is where cryptography enters: different algorithms exist — AES, DES, triple DES (3DES) — developed over the past 20–25 years. In private key cryptography the same key is used for encrypting and decrypting; in public key cryptography one key encrypts and a different key decrypts. The main objective of all this cryptographic technology is to prevent man in the middle attacks.

The MITM flow was re-explained once more for clarity: the threat actor is introduced as a legitimate resource between the two parties — a system or server between the client and a web application. The client requests information; the server should respond only if the client is truly authenticated. But if a system in between captures the request coming from client A, changes that entire request, makes the source appear as itself, and gets the response from the server, the legitimate person never receives the response — a middle system recrafted the request and routed it per the needs of the middle person. That is the man in the middle attack.

Encryption is not the only control. Session IDs valid for a limited amount of time prevent session hijacking. The class revisited cookies: when you browse a website, information is stored in cookies on your laptop, and next time, based on the cookies, the site can regenerate the page you requested. If somebody captures your machine and gathers those cookies, they can browse your authenticated login sites with your credentials. That is why even cookies now have a limited timeframe, and why a session ID is generated that is valid only for a specific time — that is the reason banking transactions time out automatically when a session is idle for a certain period. These are the controls used to prevent man in the middle attacks.

8.4.6 SQL Injection and Cross-Site Scripting

SQL injection was covered in earlier classes. In the username and password fields, if there is no proper data input validation, an attacker can pass an SQL query that bypasses validation, logs in directly, reaches the SQL database, and fetches the required information. That is SQL injection. Cross-site scripting (XSS) is the situation where a successful injection — a query result — gives commands to the system and performs all the actions it is not supposed to perform. Both are OWASP Top 10 entries and both stem from missing input validation.

Pitfall: students mix the two up because both involve injected input. The difference is the target: SQL injection targets the database behind the application (it turns the input field into a database command), while XSS targets the browser of another user (the injected content runs as a script in a victim's browser). The shared root cause is the same — input that is not validated — but the payload lands in different places.

8.4.7 Zero-Day Exploits

A zero-day exploit targets a weakness for which there is no patch yet — no imminent patch available — so every system that has the application installed is vulnerable to that exploit. One of the assignments asks about zero-day exploits: what they are, and which defense in depth controls can be implemented to reduce the impact of a zero-day exploit. The depth note: since a patch does not exist, the response is layered controls that reduce the impact even when the weakness is exploited.

Exam note: for the zero-day assignment, the reasoning is: because a patch does not exist, prevention is impossible — so the answer is defense in depth, the layered controls that limit what an attacker can do even when the unpatched weakness is exploited (application whitelisting, least privilege, network segmentation, monitoring, backups).

8.4.8 DNS Tunneling

The DNS (domain name server) resolves the domain names you type into IP addresses. DNS is similar to a phone book: the entries translate between domain names and their corresponding IP addresses. When you type a URL such as wbl.facebook.com, the request goes to DNS, it searches its records, and based on the records the packet is redirected to the concerned router interface.

Tunneling means establishing a closed path. Real-world: a VPN tunnel in a public network establishes a private network — communication happens only inside the tunnel, so even over a public network nobody can access the data traveling through it. DNS tunneling is the attack version: the attacker establishes a tunnel so they can bypass your firewalls at the entry and exit points. Since the tunnel traffic looks like DNS requests that need updating, people think it is legitimate DNS traffic. The attacker takes control of your infrastructure — called C2, command and control — and can poison your DNS entries, making it very difficult for domain names to be converted correctly to their IP addresses.

Worked example — wbl.facebook.com redirected:

The class example traces what happens at each step of a DNS tunneling scenario:

  1. You type the URL wbl.facebook.com in your browser.
  2. Your request goes to DNS; DNS searches its records for the domain name.
  3. Normally the records point the packet to the real router interface of the destination — the packet reaches the site you asked for.
  4. In the tunneling version, the attacker has taken control of the DNS infrastructure (command and control, C2) and poisoned the entries — so the same lookup resolves to the attacker's destination instead of the legitimate one, while the traffic flows through a tunnel that looks like ordinary DNS traffic.

Sense-check: the attack works because the tunnel traffic is shaped to look like normal DNS requests — the very requests the firewall must let through — so the poisoned lookup happens "inside" a legitimate channel, which is exactly why it is so hard for detection controls to catch.

DNS tunneling is one of the toughest attacks for existing detection controls to catch. That is why, whenever somebody tries to establish a tunnel, you authenticate and check where the request is coming from, and decide whether to accept it. Real-world: real DNS-based attacks were reported in 2017, 2020, and 2021. If the DNS entries are not properly secured, multiple attacks become possible — DNS spoofing, DNS poisoning, DNS cache poisoning, and tunneling that passes traffic undetected through the firewall.

The fix starts at the DNS level: maintain trusted entries and untrusted entries when updating DNS records. If you outsource DNS entirely, the vendor is responsible for the security controls — filtering every entry request, checking the content, and deciding whether a site is on a block list, is malware, or is spam. Implementing levels of controls at the domain level minimizes DNS tunneling issues. Exam note: DNS was used as the worked example of the thought process — understand the threat surface, the chance of it impacting your system, and the recommended control for it; the same reasoning applies to every attack in this chapter.

Recap + bridge: every attack in this chapter reduces to a threat targeting some vulnerability: phishing and spear phishing target human trust; malware targets unpatched or uninspected code; DoS/DDoS target availability; ransomware targets data ownership; MITM targets unencrypted transit; SQLi and XSS target missing input validation; zero-days target unpatched weaknesses; DNS tunneling targets DNS trust. The next section separates who gets attacked — everyone, or someone specific.

Real-world: this chapter's attacks are the recurring headlines in incident reports — phishing is the most common initial access method in enterprise breaches, ransomware dominates the last two years of cybercrime, Wireshark remains the standard packet-capture tool in penetration testing, and DNS-based attacks in 2017, 2020, and 2021 showed that even infrastructure services need their own controls.

8.5 Targeted and Untargeted Attacks, APTs, and Botnets

8.5.1 Targeted vs Untargeted Attacks

Targeted attacks choose a specific group of people, a specific organization, or a specific industry. The name says it: you are targeting a specific group. In email spamming, if you target only specific C-level executives, it is spear phishing; if you target business folks by sending out spam lists, it is still targeted phishing. Recent attacks discussed in earlier sessions targeted specific industries. Untargeted attacks have no specific target: there is no particular group you want to attack, no network you chose — you exploit whatever machines you can. Ransomware, malvertising, and phishing attacks are untargeted examples.

The two differ in who gets chosen, how much effort the attacker spends, and what the defense looks like:

Dimension Targeted attack Untargeted attack
Who is chosen A specific person, organization, or industry Whoever can be exploited — no chosen victim
Examples Spear phishing at C-level executives Ransomware, malvertising, mass phishing
Attacker effort High: research, customized lures Low: automated, cast wide
Typical defense Detect anomalies for a known target; reduce the value of insider knowledge Harden the surface everyone shares: patching, awareness, spam filters

APTs — advanced persistent threats — were also discussed in earlier sessions, along with how to defend against them, and spear phishing came up there too. An APT is the extreme of targeted: a patient, well-resourced attacker who gains a foothold and keeps it for a long time to collect specific data.

Pitfall: "no specific target" does not mean "no damage." Untargeted ransomware and mass phishing do not choose their victims, but they still succeed at scale — the defense is not about who the attacker picks, it is about how hard your systems are to exploit in general.

8.5.2 Watering Hole Attacks

A watering hole attack compromises the legitimate sites that the target organization visits frequently. The attacker's job is to infect the visitor's device with malware: the moment somebody visits the website, malware is injected into their machine through the site they are accessing.

Intuition: the name comes from hunting — instead of chasing the prey, the hunter poisons the water the prey drinks from. The attack is called a watering hole because it poisons the water the prey drinks from, rather than chasing the prey. The site itself looks normal; the victim's own visit habit delivers the malware, which is why the victim trusts the site they have visited a hundred times.

8.5.3 Botnets

A botnet is a network of infected systems. All the systems that have been infected by the virus or other malware form a network, and they perform an attack together — that combined attack is the botnet attack. Real-world: whenever there is a financial data breach, the names of different botnets come into the picture — IRC botnets, zombie botnets, and more, where a group of already-infected systems tries to damage a target system.

Q: What is a botnet in cyber security?

A: All the systems that are already infected form a network. Together they attack a target, and that attack is a botnet attack. These infected machines are also called zombies. The infected machines can be scattered across thousands of homes and offices; what unites them is the attacker's remote control, not their location.

8.5.4 Patterns of Cyberattacks

Attackers infiltrate in more than one way:

  • Sequential — attackers follow the traditional stages in a linear fashion, step by step. If you remember the Certified Ethical Hacking (CEH) course, there are six defined stages starting with reconnaissance, and attackers can move through them one by one; the MITRE tactics we cover next can also be walked through in sequence.
  • Piggybacking — the attacker exploits a vulnerability created by a legitimate process, riding on something that already has access.
  • Combination — the attacker uses a combination of different techniques, mixing steps and direct exploitation of a weakness in the system.

Recap + bridge: attacks differ by who they choose (targeted vs untargeted), how they deliver the payload (watering hole, botnet, phishing), and how they move (sequential, piggybacking, combination). Because attackers follow recognizable stages — from initial contact to final impact — the industry built frameworks to name those stages; the next section walks through the most important one, MITRE ATT&CK.

Real-world: botnet names like IRC and zombie botnets surface in financial data breach reports; the CEH certification teaches the six sequential stages starting with reconnaissance; watering holes have been used against industry groups whose members share trusted websites — the combination of the three patterns covers most real intrusion paths.

8.6 Attack Frameworks: MITRE ATT&CK and the Rest

8.6.1 The MITRE ATT&CK Tactics

Frameworks organize how attackers operate. MITRE ATT&CK is the framework the class focused on, and it is very important in the latest security tools. It explains the techniques most threats follow, from initial access to the system all the way to final control. Based on the attacks that have happened, the industry identified 14 steps, called tactics:

  1. Reconnaissance — information gathering: this organization has so many Windows servers, so many Linux servers, so many Juniper routers, so many Cisco routers.
  2. Resource development — based on the reconnaissance, develop the resources needed to attack: the necessary tools.
  3. Initial access — gain the first access to the organization's network or systems, via email or whatever mechanism.
  4. Execution — execute the successful access.
  5. Persistence — maintain access, so the access is not lost.
  6. Privilege escalation — move from normal access to privileged, admin level access, for example by entering system files and changing entries.
  7. Defense evasion — find out what defense controls are implemented and how to evade them.
  8. Credential access — see where the credentials are being accessed and obtain them.
  9. Discovery — explore the network: which servers are located where, what type of information exists.
  10. Lateral movement — move sideways through the network so detection mechanisms cannot identify where you are.
  11. Collection — collect whatever information the attacker wants.
  12. Command and control — reach the C2 stage: full command of the machine and control of the machine or network.
  13. Exfiltration — data moving from the organization network to the hacker's system.
  14. Impact — the impact happens to the system.

This is the walkthrough of the 14 tactics as listed by the ATT&CK framework.

Intuition: the 14 tactics are stages of a journey, not a checklist of separate attacks. Early stages answer "how do I get in and stay in?" (reconnaissance → resource development → initial access → execution → persistence), middle stages answer "how do I gain power and explore?" (privilege escalation → defense evasion → credential access → discovery → lateral movement), and the end answers "what do I do once I am in?" (collection → command and control → exfiltration → impact). Knowing which stage a detected action belongs to tells the responder what is coming next.

Worked example — tracing one intrusion through the 14 tactics:

Start with a realistic scenario: an employee receives a phishing email and clicks the link. Follow each stage as the attack progresses.

  1. Reconnaissance — the attacker gathered that the organization runs Windows servers and Salesforce for its sales team.
  2. Resource development — the attacker prepares a malicious document and a server to host it.
  3. Initial access — the phishing email with the malicious link is delivered; the employee clicks it.
  4. Execution — the downloaded document runs its embedded code on the employee's machine.
  5. Persistence — the attacker installs a scheduled task so the foothold survives a reboot.
  6. Privilege escalation — the attacker exploits a local weakness to get an admin account on that machine.
  7. Defense evasion — the attacker disables the local antivirus and clears log entries.
  8. Credential access — the attacker dumps saved passwords from the machine's credential store.
  9. Discovery — the attacker maps the network: which servers exist, what shares are reachable.
  10. Lateral movement — the attacker uses the stolen admin credentials to move to the file server.
  11. Collection — the attacker copies the customer database files from the file server.
  12. Command and control — the stolen machines dial out to the attacker's C2 server for instructions.
  13. Exfiltration — the collected database is uploaded out of the organization's network.
  14. Impact — the attacker encrypts the file server as ransomware — the final impact.

Sense-check: every action in the story fits into exactly one tactic, and the order matches the 14-step list — which is why incident responders use the framework to name the current stage and predict the next move.

8.6.2 How Security Products Use the Framework

Whenever an attack is happening, most EDRs (endpoint detection and response) and XDRs (extended detection and response) — whatever the tool — try to post which phase the threat is in: initial access, persistence, lateral movement, discovery, or another. Real-world: Carbon Black, CrowdStrike, and SentinelOne are EDR/XDR products that follow these attack phases at the back end. CrowdStrike and SentinelOne, the top vendors for automating endpoint security, both use the MITRE ATT&CK framework. In security incident management this matters directly: when an alert fires at the back end, many ML based tools show which attack framework phase or stage the attacker is in, which tells the incident responder what is happening. That is why these phases are very important in incident management.

Exam note: link the framework to incident management: an alert alone says "something happened"; the ATT&CK stage says "where the attacker is in their journey" — and that turns the alert into a decision about the next step of the response.

8.6.3 Other Attack Frameworks

MITRE ATT&CK is one of several frameworks. The others named in the discussion:

  • STRIDE — a threat modeling framework from a web security perspective.
  • OCTAVE — another framework used for risk assessment.
  • Kill Chain — the Cyber Kill Chain, one of the most popular frameworks.
  • Fast Kill Chain — a more recent variant.
  • OWASP — relevant from a web security perspective.

Of all of them, the Kill Chain and MITRE are the two frameworks that most cyber security product companies embed at the back end of their applications.

Q: Can anyone recall other attack frameworks besides MITRE ATT&CK?

A: STRIDE, the Kill Chain, and Fast Kill Chain are popular. OWASP is a framework from a web security perspective, and OCTAVE is another one. The frameworks serve different purposes — STRIDE models threats to a web application, OCTAVE assesses organizational risk, and the Kill Chain sequences the stages of an attack — but the ones product companies embed most are the Kill Chain and MITRE.

Recap + bridge: MITRE ATT&CK names the 14 tactics every attack passes through, from reconnaissance to impact; EDR/XDR products use those stages to tell responders where a threat is; and the other frameworks — STRIDE, OCTAVE, Kill Chain, Fast Kill Chain, OWASP — cover modeling and risk roles. Knowing the framework tells you what stage a detected action represents — and knowing the controls tells you how to stop it, which is the next topic.

Real-world: CrowdStrike, SentinelOne, and Carbon Black — the major EDR/XDR vendors — map detections to ATT&CK techniques at the back end, and security product companies embed MITRE and the Kill Chain in their applications, so a security analyst in almost any SOC reads the same 14-stage vocabulary.

8.7 Essential Cyber Security Controls

8.7.1 The Goal: Reduce Exposure

Reducing your exposure is very, very crucial: the smaller the attack surface, the less chance attackers have to exploit it. The main point for a cyber security engineer is to reduce exposure — that significantly improves the security posture and minimizes the risk of data breaches, financial losses, and operational disruptions. The approaches: regular updates, continuous awareness sessions as part of onboarding and on a frequent basis, secure SDLC for developers, MFA (multifactor authentication), network segmentation implementing a DMZ, deploying intrusion detection systems (IDS) and intrusion prevention systems (IPS) — though the current trend has moved to XDR, extended detection and response — and application whitelisting, where companies list the allowed applications in their transparent or non-transparent proxy servers.

A first-by-default practice: users get limited access to their laptops and do not have admin level privileges by default, so they cannot install software. To install software for business needs, you raise a ticket, get manager approval, and the IT team checks whether it is a licensed or open source version, verifies it per process and procedure, and then installs it remotely or makes it available through a shared drive.

Other exposure-reducing measures: disable unnecessary services and unnecessary ports; restrict remote access by default; disable remote procedure calls that are not required; disable the download option by default; and continuously monitor systems. Modern EDRs continuously monitor how process to process communication happens — any abnormal process to process communication is immediately detected and raised as an alert to the security team. VPNs establish a dedicated tunnel even inside a private network.

Intuition: exposure reduction is the "default deny" mindset — every service, port, privilege, and download is closed until a business need proves it must be open. Security is easier when the default answer is no and the business must ask for yes.

8.7.2 Application Control and Whitelisting

Application control prevents the execution of malicious programs — including EXEs, DLLs, scripts such as Windows scripts or PowerShell, and installers. When you control what applications get installed, you reduce the threat. The mechanism is a whitelist of allowed applications. Open source software cannot be installed without approval, and ordinary users do not have the privilege to install an application — only the admin installs.

The strategy question: should we list the whitelist or the blacklist? It is always best to have fewer entries, so we go with whitelisting — you know exactly which applications are allowed, and anything beyond that is blocked.

Pitfall: a blacklist has to name every bad program in the world and must be updated forever; a whitelist names only what is allowed and blocks everything else by default. Because the blacklist is always one step behind new malware, whitelisting is the safer strategy — the "fewer entries" principle is exactly why the class picked it.

8.7.3 Patch Management

Patch management is a very important control, run by a dedicated team for production servers. It is a process, not a single action, so it is best understood as a workflow.

Purpose: keep production systems up to date with vendor fixes so known weaknesses cannot be exploited. Inputs: vendor patch releases, the current inventory of production servers and software versions, and a committed service level agreement (SLA) for deployment. Output: a production estate where every system runs the approved patch level, verified by scanning tools.

The program works like this: a change ticket is raised; the team pulls the patches from the vendor releases; they test the patches and make sure the system functions as expected; they push the patches in a phased manner; and finally, as per the committed SLA, they deploy all patches and ensure systems are up to date. Patch scanning tools verify whether the patches are up to date.

Worked example — the patch workflow traced end to end:

  1. Change ticket raised — a new vendor patch release is announced; the team logs a formal change request so every action is auditable.
  2. Pull patches — the team downloads the patches from the vendor releases.
  3. Test — patches are installed on test systems first; the team checks that the system functions as expected (no regression in the business application).
  4. Phased push — patches roll out in phases, e.g., a small pilot group first, then wider rings, so a faulty patch damages only a small slice of systems.
  5. Deploy per SLA — by the committed SLA deadline all patches are deployed and systems are up to date.
  6. Verify — patch scanning tools confirm every system shows the expected patch level.

Sense-check: each step exists to answer one risk — the ticket answers "who authorized this?", testing answers "does this break the business?", phasing answers "what if the patch is bad?", and the scan answers "did it actually apply everywhere?" — which is why skipping any step creates a new vulnerability.

8.7.4 Application Hardening

Application hardening applies as simply as web browsers blocking Flash or Java. The reason Flash and Java are targeted: the moment a Flash file is allowed in, it directly has the privileges to go deep into system level access files or root level privileges. That is why browsers disable these features, why you get a pop-up saying Flash has been disabled on a website full of Flash players, and why disabling them prevents malicious code from entering your system. The same approach applies to Microsoft Office, which most people use — macros are restricted to authorized users.

Exam note: the Flash example is the standard illustration of hardening: a feature that is convenient but grants deep system privileges is restricted or disabled by default — and the same reasoning (restrict what runs with high privileges) extends to Office macros, browser plugins, and any add-on that can reach system level access.

8.7.5 Multifactor Authentication and Admin Privileges

MFA — multifactor authentication — combines what you have, what you are, and what you know. It is recommended and often mandated when using critical services or performing risky operations like a remote connection. Admin privileges should be limited by default — one of the most important controls — with admins restricted to only the system administrators and network administrators. A normal user gets the minimum level of privileges needed to do their work. Daily or weekly backups of laptops and servers complete the routine picture.

Intuition: MFA changes the game for stolen passwords. A password alone is one factor (what you know); the attacker who steals it still lacks your phone (what you have) and your fingerprint (what you are). Even a leaked password cannot complete the login alone.

8.7.6 Firewalls, Gateways, and the DMZ

A firewall is a security control, software based or hardware based. By the way it operates, a firewall can be a layer 2 firewall: in the older days, blocking or allowing based on the MAC address. A firewall that allows or blocks based on the source or destination IP address is a layer 3 firewall. There are also layer 7 firewalls, software firewalls, and dedicated hardware devices. Which one to deploy depends on the organization's requirement — and as always, the cost benefit analysis comes first, considering the benefits of deploying the firewall, and then the architects or business stakeholders decide which type or layer of firewall to implement.

All the network behind the firewall is the internal network. Servers that must be reachable from the internet are placed in a separate zone called the DMZ — the demilitarized zone. Requests are redirected to the DMZ servers and processed there, so that traffic never enters the internal network while the required services are still delivered to clients. This is how an architect segregates the organization network by business need — publicly facing servers live in the DMZ, and the risk to the internal network stays minimum.

The critical roles of the firewall set: traffic filtering — allowing or filtering packets, both ingress (incoming) and egress (outgoing); access controls; threat prevention; and DLP — preventing data leakage. The egress filtering purpose is to make sure no exfiltration happens: no organization confidential critical data leaves the internal network. These are the crucial controls of a normal, pre-cloud network — in the cloud the picture is different, with concepts like VPC logs.

8.7.7 Stateful vs Stateless Firewalling

Multi-layer defense means implementing controls at different layers — code filtering, packet filtering, stateful inspection. A stateless firewall (the first generation) checks packets based on source and destination only and allows or blocks; it does not check the state of the request. A stateful firewall also inspects the state of the connection: it checks the previous connection that was established and, based on that, allows or blocks. Remember the TCP three-way handshake: with the SYN flood attack, if the firewall does not check state, there is a high chance of the SYN flood succeeding; with stateful inspection, the connection state is checked and the attack is blocked. Layer after layer of such controls is the multi-layered defense.

Dimension Stateless firewall Stateful firewall
What it checks Source and destination only Connection state — the handshake that was established before
Memory of previous traffic None — each packet is judged alone Yes — tracks established connections
SYN flood defense Weak — individual SYN packets look legitimate Strong — a SYN with no completed handshake is dropped

Firewall best practices: firewalls are completely rule based, so define strong and complex rules.

Worked example — the "allow all" rule mistake:

The most important mistake in firewall rule writing: saying "allow all" at the top, or "allow all" at the bottom. Consider a rule set written in this order:

  1. Allow the marketing team's IP range to the web server (intended).
  2. Deny a list of known-bad IP addresses (intended).
  3. Allow all (the mistake at the bottom).

Firewalls evaluate rules from the top down, and the final "allow all" rule overcomes all the rules above it: step 2's deny list is pointless, because any packet that reached step 3 is allowed no matter which IP address it came from.

Sense-check: the rule order defeats the intent — the two careful rules above are dead letters, and the network is effectively open, which is exactly why the professor flagged this as the most important rule-writing mistake.

Review the firewall rules regularly to make sure they are aligned to business needs and updated for the latest threats, and the sequence of the rules is very important. Send the firewall logs to a centralized monitoring system: collating and cross-correlating logs from multiple sources helps the security engineer quickly identify where an incident is happening.

Secure configuration completes the set: hardening of your system, patch management, and configuration management. Encryption for data in transit and data at rest is part of this — with one open question, below.

8.7.8 Traffic Filtering, DLP, and Monitoring

Data inspection — content checking — means inspecting what comes in and goes out. Outside to inside: check for harm to the organization, so no virus or malicious malware enters as part of a word document or email. Inside to outside: check whether confidential data is leaving — exfiltration.

Q: What device checks outgoing data for keywords and blocks it when it matches?

A: That is DLP, data leakage prevention. In the older days we configured WebSense with keywords gathered from the business, and it blocked the data from leaking outside the organization. The direction matters: this control watches the outbound path, because its job is to stop confidential data from leaving.

Exam note: a question may ask you to name the control that inspects outbound content — the answer is DLP, data leakage prevention.

Now the open question the class was asked to think about. We say data in transit should be encrypted so no man in the middle attack happens. But the same encryption can be leveraged by hackers: they send encrypted data with a virus or malware injected inside. What control detects the malware inside the encrypted data even though it is encrypted? Do we have such a mechanism in place? Yes, we definitely do — the question is how it works, and that is left for you to think about. Exam note: this is the kind of reasoning question that shows deeper understanding — encryption prevents interception, but detection must still operate on the traffic.

Q: If data in transit is encrypted, and an attacker hides a virus inside the encrypted data, what control detects it?

A: Yes, a mechanism exists that detects it, and how it works is left for you to think about. The thinking point: our detection must still see inside the encrypted flow without breaking the confidentiality that encryption provides — the encryption protects the content from interception, but the traffic must still be inspected for the malware hiding in it.

8.7.9 Zero Trust

The current trend is the Zero Trust mechanism: do not trust. Earlier, if this was an organizational laptop, it was trusted and granted access. Zero Trust says do not trust even if the request comes from corporate systems or the corporate network. It enforces compliance checks before granting data access — even a legitimate person must pass the checks before being granted access to the applications they need. Zero Trust minimizes the attack surface; it never nullifies it.

Worked example — the enforcement engine in action:

The example from the class. The organization deployed CrowdStrike with policies listing what must happen when somebody tries to access. At the enforcement engine, the enforcement point has its own list of checks:

  1. Hardware type of the endpoint — is this the approved device, or an unknown machine?
  2. Geolocation of the request — is the user connecting from an expected location?
  3. OS security updates and patch levels — is the device up to date?

Only when all the checks succeed does the request get allowed; otherwise it is rejected.

Sense-check: the checks run even for corporate laptops on the corporate network, which is the definition of Zero Trust — the "this is our machine, so trust it" shortcut no longer exists, and every request stands or falls on its own compliance check.

This is the same principle as the home-network scan: the moment you connect from your home network, an entire scan runs, and once it confirms you are good to connect, you can connect to the corporate network.

Exam note: know the boundary of Zero Trust — it minimizes the attack surface but never nullifies it; a determined insider or a fully compromised compliant device can still do damage, which is exactly the topic that follows.

8.7.10 Insider Threats

Even with N number of technical controls and multiple lines of defense, insider threats remain the damage that cannot be detected quickly. Insiders are already legitimate people with access to everything — attacks from your employees. Insider threats can easily impact confidentiality, integrity, or availability. An insider knows the weaknesses in the organization, knows where the data is and how to exploit it, so the damage caused by insider threats is always high.

Insider threats come in two flavors: unintentional — human oversight, an error that resulted in a threat — and intentional — a person deliberately damaging your system. The signs a monitoring tool should catch: a person uploading large amounts of data from the organization's Google Drive to a personal laptop is a sign of data exfiltration; a payroll person logging in at midnight, 12 to 4 AM, with no business requirement, is suspicious. Monitoring tools should list all possible scenarios so insider threats can be detected early.

The administrative controls against insiders: periodic review of user access — when an admin moves from one department to another, the previous roles must be removed in a timely manner; when an employee leaves the organization, access is removed within a stipulated time, say 24 or 48 hours. Password policies define how strong and complex passwords must be, and awareness sessions teach employees not to write passwords where they can be seen by others but to keep them in mind. Content checking covers both directions: inbound content so no malicious file enters, outbound content so no confidential data leaves.

Pitfall: the standard controls miss insiders because insiders pass them by design — they are authenticated, authorized, and know where the data lives. That is why the detection story for insiders is behavioral: unusual volume (mass upload), unusual time (midnight login), unusual role behavior — and why access reviews and offboarding timelines (24–48 hours) exist as administrative controls.

8.7.11 The Best Practices at a Glance

The eight recommended best practices listed in the session: application control, patch management, application hardening, MFA for critical applications, admin privileges limited by default, daily or weekly backups, continuous monitoring, and security awareness. This list is an example, not a guarantee — having these eight does not make you secure. There are many more practices, and the right set depends on the context of your organization's network, servers, and databases. Exam note: be able to argue which control fits which situation, using the cost benefit logic, rather than memorizing a fixed list.

Recap + bridge: controls reduce exposure — application control via whitelisting, patch management as a six-step workflow, hardening for high-privilege features, MFA for critical services, least privilege for admins, layered firewalls with DMZ segmentation, stateful inspection against SYN floods, DLP for outbound data, Zero Trust compliance checks, and insider-aware monitoring. Together they form the layers of defense that the final section ties into one diagram.

Real-world: the eight practices map directly to what real enterprises run — CrowdStrike-style enforcement engines for Zero Trust, WebSense-style DLP for outbound keywords, centralized firewall log correlation in a SIEM, and access reviews at every role change — and the encrypted-traffic detection question is one that modern security teams answer with inspection technologies that look inside encrypted flows.

8.8 The Four-Chapter Recap

8.8.1 Chapter One: Security Fundamentals

The first chapter asked the basic questions: what is security, why do we need security, and what are the different types — computer security, infrastructure security, cyber security. The CIA triad reappeared: confidentiality protects against unauthorized access and reading, integrity ensures no unauthorized modification, and availability keeps the service usable. We defined threat, threat modeling, and threat intelligence, and the sources for intelligence including open source. We covered attack surfaces, what an attack is, and what a vulnerability is, plus the different types of vulnerabilities. Controls were classified by category — physical, administrative, technical — and by function — preventive, detective, corrective, deterrent — with the reminder that preventive is always preferred.

We understood the difference between policy, procedure, standards, and frameworks, and which organization policies protect confidentiality, integrity, and availability. The confidentiality model was the Bell-LaPadula model, the military model; Biba was the integrity model. The exact read and write restrictions of these models were referred to in the earlier session. In the recap the class was asked to recall which controls allow only read operations, and the answer needs both models spelled out: Bell-LaPadula protects confidentiality with two rules — the simple security condition, "no reads up" (a subject cannot read an object at a higher classification), and the -property, "no writes down" (a subject cannot write to an object at a lower classification, because that would leak secret data into a less protected place). Biba protects integrity with the dual rules — "no reads down" (a subject cannot read from a lower-integrity object, because the untrusted data would taint the subject) and "no writes up" (a subject cannot write to a higher-integrity object, because lower-trust content must not change higher-trust data). The two models are opposites on the same axes: Bell-LaPadula stops high data from flowing down; Biba stops low data from flowing up*.

Exam note: these models are exam relevant — be ready to state which model serves confidentiality and which serves integrity: Bell-LaPadula is the confidentiality model (military), Biba is the integrity model, and their read/write rules are the exact mirror of each other — "no read up / no write down" for Bell-LaPadula versus "no read down / no write up" for Biba.

Then the networking fundamentals: the internet, what a network is, LAN, MAN, WAN, what a computer is, MAC address versus IP address and the difference, and how they connect in a LAN. The LAN technologies started with the Ethernet framework, then token bus, token ring, and FDDI to understand how communication happens. The seven layers of OSI were covered, and why the seven layer model moved to the TCP/IP four layer approach. Each layer's role appeared in the walkthrough of a sender and receiver communicating through an application: the flow goes top to bottom, from application to physical layer, on the sender side, and bottom to top on the receiver side — the Google Chat example, where everything typed moves through each layer. The network utilities closed the chapter: hub, switch, router, gateway, the differences, and when each is preferred.

8.8.2 The Defense-in-Depth Wheel

The wheel diagram ties the course together: controls are implemented at different layers — data security, detection response, incident, IAM, endpoint, and network security. Each control implemented at a different layer helps minimize the risk, and the wheel helps you see holistically why we implement a different set of controls at each layer.

Worked example — reading the wheel:

Picture the wheel as six sectors around a hub, one per control layer:

  • Data security — encryption of data in transit and at rest, DLP for outbound content.
  • Detection response — IDS/IPS and the current trend, XDR, raising alerts when something suspicious happens.
  • Incident — the incident management layer that reacts when an alert turns into a confirmed event.
  • IAM — identity and access management: authentication, authorization, accountability, least privilege.
  • Endpoint — application control, application hardening, patch management, backups on laptops.
  • Network security — firewalls, DMZ segmentation, VPN tunnels, traffic filtering.

Sense-check: the wheel works because no single sector covers everything — an attack that defeats the network layer is still caught by the endpoint layer, and one that defeats endpoints is still limited by IAM and data security; the layers overlap so that failure in one is not failure in all.

Exam note: go through the defense in depth wheel diagram when revising — it covers the material of two chapters at once, and it was flagged as the diagram to review.

Q: What do you mean by a critical question?

A: Nothing special. The pattern is three theoretical questions and two scenario based questions — "critical" was just the word used for the theory questions. The wheel diagram helps you see holistically why we implement a different set of controls at each layer; it was flagged as the diagram to review because it ties the material of two chapters together.

Recap + bridge: chapter one supplies the fundamentals — CIA, threat terms, controls by category and function, the Bell-LaPadula and Biba models, and networking basics from LAN technologies to the OSI and TCP/IP layers — and the defense-in-depth wheel shows why controls must be spread across data, detection, incident, IAM, endpoint, and network layers. That layered view is the closing picture of the four-chapter syllabus: the landscape, the vulnerabilities, the attacks, and the controls that meet them at every layer.

Real-world: the wheel is a real architecture pattern — enterprise security teams staff IAM, network security, and detection response teams separately, and the ISO/SOC audit evidence structure maps its controls to the same six layers, which is why reviewing the wheel effectively reviews two chapters at once.

Exam Guidance Summary

  • The exam covers chapters 1 to 4, and the four chapter handouts contain roughly 99% of the topics — you will not be asked beyond them.
  • The exam is 30 marks: five questions of six marks each. Three questions are theoretical and two are scenario based. One theory question comes from each chapter, so one of the four chapters carries no theory question. The stated 70% theoretical / 30% practical split does not match the 3-of-5 and 2-of-5 counts arithmetically — the five-question pattern is the reliable figure.
  • Scenario questions give a situation and ask you to identify the threat or the vulnerability behind an attack and recommend controls, or to say which framework and which part of it applies. Practise the "what is the common vulnerability over this attack and what is your recommendation" format.
  • The exam is closed book and answers are written by hand. Drawing figures and diagrams is optional — presentation choices are yours, and the evaluator judges how well you understand the topic and how well you present the expected answer.
  • When asked which control to recommend, prefer a preventive control over detective, deterrent, or corrective ones.
  • Control recommendations rest on cost benefit analysis: cost against benefit, and the business takes the final call.
  • Know the four ways to respond to risk: transfer, mitigate, avoid, accept — the most commonly forgotten one is acceptance.
  • Revise the defense in depth wheel diagram (data security, detection response, incident, IAM, endpoint, network security) — it covers two chapters at once.
  • Revise the chapter one fundamentals: CIA, threat vs threat modeling vs threat intelligence, control classifications, policy/procedure/standards/frameworks, Bell-LaPadula for confidentiality and Biba for integrity, LAN/MAN/WAN, MAC vs IP, Ethernet/token bus/token ring/FDDI, the OSI seven layers vs TCP/IP four layers, and hub/switch/router/gateway.
  • Quizzes and weights: quiz one done at 5% weightage, quiz two after chapter five, competency examination at 50 marks.
  • Submit assignments before the syllabus finishes so assignment marks are uploaded and not lost.

Key Industry Applications

  • Real-world: CrowdStrike and SentinelOne are the top EDR/XDR vendors automating endpoint security, and both use the MITRE ATT&CK framework at the back end; Carbon Black also maps alerts to attack phases. MITRE and the Kill Chain are the two frameworks most security product companies embed.
  • Real-world: Qualys performs network scans and authenticated and unauthenticated web application scans; Acunetix is a web scanner; both work from the OWASP Top 10 style list of common vulnerabilities. Monthly and quarterly scans with these tools find outdated software such as version 1.2 needing version 3.4.
  • Real-world: CIS benchmarks and SANS guides provide the hardening configurations for OS and database versions; hardening scans gate home-network connections to corporate networks.
  • Real-world: Wireshark is the classic tool used in man in the middle capture; the defense is encrypting data in transit with algorithms such as AES, DES, and 3DES, plus session IDs and limited-lifetime cookies, which is why banking sessions time out when idle.
  • Real-world: SPF and DMARC checks decide whether an email enters the inbox; WebSense is the older DLP product that blocks data leaving the organization by keywords; DLP stops exfiltration.
  • Real-world: OSINT and paid feeds supply threat intelligence; VPN tunnels and DMZ network segmentation are standard enterprise controls; Zero Trust is the current trend, with enforcement engines checking hardware type, geolocation, and patch levels before granting access.
  • Real-world: real DNS attacks occurred in 2017, 2020, and 2021 — DNS poisoning, DNS cache poisoning, and DNS tunneling — and outsourced DNS puts the filtering responsibility on the vendor.
  • Real-world: Intel has released hardware patches for chip vulnerabilities; IRC botnets and zombie botnets appear in financial data breaches; the CEH certification defines the six stages of an attack starting with reconnaissance.

CS Lecture 8 notes · Cyber Threat Landscape and Cyber Attacks

Cyber Security· postgraduate· 2026-08-16

Sections Breakdown

1The Exam Blueprint and Today's Roadmap

The exam blueprint: five questions of six marks each, closed book and handwritten, with three theoretical and two scenario based questions across chapters one to four.

2The Threat Landscape

The threat landscape defined against an organization's context, the CIA objective, risk and the four responses, the growing attack surface, and controls by category and function.

3Vulnerabilities

Vulnerabilities as weaknesses in software, hardware, configuration, or the human layer, with OWASP Top 10, SAST and DAST, the secure SDLC, and hardening benchmarks.

4Common Cyber Attacks

The common attacks: phishing, malware, DoS and DDoS, ransomware, man-in-the-middle, SQL injection and XSS, zero-day exploits, and DNS tunneling.

5Targeted and Untargeted Attacks, APTs, and Botnets

Targeted versus untargeted attacks, APTs, watering hole attacks, botnets, and the patterns attackers follow.

6Attack Frameworks: MITRE ATT&CK and the Rest

The MITRE ATT&CK 14 tactics, how EDR/XDR products use the framework, and the other frameworks: STRIDE, OCTAVE, Kill Chain, Fast Kill Chain, and OWASP.

7Essential Cyber Security Controls

The essential controls: application control and whitelisting, patch management, hardening, MFA, firewalls and DMZ, DLP, Zero Trust, and insider threat monitoring.

8The Four-Chapter Recap

The four-chapter recap: security fundamentals, the Bell-LaPadula and Biba models, networking basics, and the defense-in-depth wheel.

Postgraduate students in Cyber Security

Exam Revision Notes

Below is the distilled, exam-ready core. Every entry comes from the full explanation above. Use this section for rapid review; return to the main notes when a point needs more context.

The Exam Blueprint and Today's Roadmap

Must-know: Five questions × six marks = 30 marks; three theoretical and two scenario based questions; one theory question per chapter so one chapter has no theory question; closed book and handwritten.

⚠️ Top pitfall: Treating 'no per-assignment deadline' as no deadline at all — assignment marks are lost once the syllabus finishes.

Self-check: What is the exam total if there are five questions worth six marks each?

Connects to: 8.2 The Threat Landscape.

The Threat Landscape

Must-know: Risk = probability of the threat exploiting the vulnerability × impact; the four responses are transfer (insurance), mitigate (compensating controls), avoid (stop the activity), accept (business continues); controls are classified by category (technical, physical, administrative) and function (preventive, detective, deterrent, corrective); preventive is preferred.

⚠️ Top pitfall: Forgetting the fourth risk response — acceptance — because the class kept repeating 'avoid'.

Self-check: What are the four ways to respond to a risk, and which one is most often forgotten?

Connects to: 8.1 The Exam Blueprint and Today's Roadmap, 8.3 Vulnerabilities.

Vulnerabilities

Must-know: Four sources of weakness: software, hardware, misconfiguration, human error. Common vulnerabilities: outdated software (e.g. version 1.2 vs 3.4), weak passwords (16+ characters, no reuse of last six), insecure configurations (default passwords, open ports), phishing, missing awareness. SAST studies code lines; DAST exercises the running app.

⚠️ Top pitfall: Listing only software and hardware flaws and forgetting misconfiguration and human error, which cause many real breaches.

Self-check: What are the four main places weaknesses come from, and which two are easiest to forget?

Connects to: 8.2 The Threat Landscape, 8.4 Common Cyber Attacks.

Common Cyber Attacks

Must-know: SYN flood: attacker sends SYN without completing the three-way handshake, leaving half-open connections that fill the server's table. DNS tunneling: attacker tunnels traffic that looks like DNS to bypass firewalls and take C2 control. Virus, trojan, and malware are different: trojan reports your activity, virus damages files.

⚠️ Top pitfall: Mixing up SQL injection (targets the database) with XSS (targets another user's browser) — both come from missing input validation.

Self-check: Why does a SYN flood succeed against a server, and what kind of firewall check blocks it?

Connects to: 8.7 Essential Cyber Security Controls, 8.3 Vulnerabilities.

Targeted and Untargeted Attacks, APTs, and Botnets

Must-know: A botnet is a network of already-infected systems (zombies) that attack a target together. Targeted attacks pick a specific victim; untargeted attacks exploit whatever machines are reachable. Attack patterns: sequential, piggybacking, combination.

⚠️ Top pitfall: Assuming 'no specific target' means no damage — untargeted ransomware and mass phishing still succeed at scale.

Self-check: What is a botnet, and why are its machines called zombies?

Connects to: 8.4 Common Cyber Attacks, 8.6 Attack Frameworks: MITRE ATT&CK and the Rest.

Attack Frameworks: MITRE ATT&CK and the Rest

Must-know: The 14 MITRE ATT&CK tactics in order: reconnaissance, resource development, initial access, execution, persistence, privilege escalation, defense evasion, credential access, discovery, lateral movement, collection, command and control, exfiltration, impact. MITRE and the Kill Chain are the frameworks most product companies embed.

⚠️ Top pitfall: Confusing the tactic with the technique: the tactic is the stage (what the attacker is trying to achieve, e.g. persistence), the technique is the method used within that stage.

Self-check: List the 14 MITRE ATT&CK tactics, and name the two frameworks most security product companies embed at the back end.

Connects to: 8.4 Common Cyber Attacks, 8.5 Targeted and Untargeted Attacks, APTs, and Botnets, 8.7 Essential Cyber Security Controls.

Essential Cyber Security Controls

Must-know: Whitelisting beats blacklisting because fewer entries means you know exactly what is allowed. An 'allow all' rule at the bottom overrides every rule above it. Stateful firewalls check connection state and block SYN floods; stateless ones do not. Zero Trust checks every request — hardware type, geolocation, patch level — even from corporate systems, and minimizes but never nullifies the attack surface.

⚠️ Top pitfall: The most important firewall rule-writing mistake: placing 'allow all' at the top or bottom of the rule list, which overcomes all the rules above it.

Self-check: What is the most important firewall rule-writing mistake, and why does it break the rule set?

Connects to: 8.4 Common Cyber Attacks, 8.2 The Threat Landscape.

The Four-Chapter Recap

Must-know: Bell-LaPadula is the confidentiality model: no reads up, no writes down. Biba is the integrity model: no reads down, no writes up. The defense-in-depth wheel covers data security, detection response, incident, IAM, endpoint, and network security layers.

⚠️ Top pitfall: Mixing up the two models' rules — Bell-LaPadula stops high data flowing down; Biba stops low data flowing up; they are exact mirrors.

Self-check: Which model protects confidentiality, which protects integrity, and what are their read/write rules?

Connects to: 8.1 The Exam Blueprint and Today's Roadmap, 8.2 The Threat Landscape.

Was this lecture useful?

Loading comments…
🤖

BitsNotes AI Assistant

Subject Notes Assistant

Configure AI Chat

Choose how to access the chatbot
Have your own API key?

Switch to "Bring Your Own Key" tab above for unlimited access with any OpenAI-compatible provider.

🔑 Enter API key above to fetch live models from provider, or enter model name manually.
OpenAI-Compatible API Support

Choose any provider preset (Gemini, DeepSeek, Kimi, GLM, MiniMax, Qwen, OpenAI, Groq, Ollama, etc.) or enter a custom endpoint URL.

Security & Privacy First

Your API key is sent directly from your browser to your specified provider. BitsNotes servers never store or see your key.