Skip to main content
Cyber Security

Threats in Depth: Threat Hunting, Threat Intelligence, Threat Modeling, APTs, and Indicators

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

Prerequisite Knowledge

This lecture builds on the following concepts from earlier lectures. If any feel unfamiliar, review the linked notes before proceeding.

Previously Covered in This Subject

  • Control classifications (physical, administrative, technical; preventive, detective, corrective) — covered in Lecture 3
  • Threat modeling with the STRIDE categories — covered in Lecture 3
  • Risk management and responding to risk (accept, transfer, mitigate, avoid) — covered in Lecture 3
  • Advanced persistent threats (APT) — covered in Lecture 2
  • Cost-benefit analysis of controls — covered in Lecture 1
  • Independent audits: SOC reports and ISO audits — covered in Lecture 1

4.1 Course Context and Roadmap

4.1.1 What We Covered in Chapter 1

We are working through chapter one of the course, which builds the core concepts of computer security. This session stands on that foundation, so let us revisit the pieces we have covered so far.

The first building block was the CIA triad — the three core goals of security: confidentiality (only authorized people can see data), integrity (only authorized people can change data), and availability (authorized people can access data whenever their business needs it). Next came the AAA concepts: authentication (proving who you are), authorization (what you are allowed to do once your identity is proven), and accountability (logging what you did so that actions can be traced back). We discussed what a threat is — anything that can harm an asset — and what threat events are: the specific moments when a threat acts against a system. We also met the basic idea of threat modeling, which today we revisit in much more depth. Finally, we covered the theory behind security functional requirements — the idea that when developers build code, they must add security functional requirements into the software rather than bolt security on afterward.

From there we moved to attack surfaces and attack trees. An attack surface is the sum of all the places an attacker can reach into a system — every open port, service, interface, and entry point. An attack tree is a diagram that breaks one attack goal into the sub-goals that must be achieved, so defenders can see where to block. Together they give two complementary ways to think about how an attacker could get in.

We then reached computer security strategies. The strategy discussion centered on a "wheel" that shows how controls are deployed at different layers with different methodologies. Each spoke of the wheel addresses one area of defense:

Wheel layer What it covers
Data security The controls to implement for protecting data itself
Cyber incident response Everything incident handling involves, including IAM — identity and access management — and the security controls needed there
Endpoint and mobile security Endpoints: the laptops, desktops, or mobiles from which somebody tries to access the production network or production traffic
Network security Controls you can deploy so that any communication happening at the network layer happens in a secure manner
Application layer of the OSI model Strategies that can be implemented there to protect production
Cloud security Protection for the public or private cloud environment

Cloud security deserves special attention, because most organizations are moving to public or private clouds. Cloud service providers (CSPs) such as AWS and GCP provide the infrastructure; we, as cloud clients, consume those services. The key question there is the RACI matrixwho is responsible for which activity. We went through the high-level service models and highlighted the important areas where the client's responsibility differs from the provider's:

Service model What the provider manages What the client manages
SaaS (software as a service) The entire application, its runtime, and the infrastructure below The data entered into the application and the users of it
PaaS (platform as a service) The platform below the application: runtime, operating system, hardware The application code, its configuration, and the data
IaaS (infrastructure as a service) Virtualized hardware: compute, storage, and network Everything above it: operating system, runtime, application, and data

If I am a customer of AWS, what is AWS responsible for, and what am I responsible for? That split depends entirely on the level of subscription — software as a service, platform as a service, or infrastructure as a service. And if the organization's whole focus is on data security controls, there are specific approaches and tactics to implement, which that part of the wheel discusses.

Real-world: AWS and GCP as cloud providers, the SaaS/PaaS/IaaS shared-responsibility split, and the RACI matrix (who is responsible for which activity) are exactly how real engagements between a client and a cloud vendor are structured — a vendor's proposal for a cloud migration project is built around these three questions before any security control is chosen.

4.1.2 What Comes Next: Models for Achieving the CIA Requirements

Before closing chapter one, we looked ahead to chapter two. When you want to achieve authentication, a simple username and password is one method of identifying a user; if authentication succeeds, the user can log into the server or system. But behind that front end sit models developed as a base. For each CIA goal, scientists designed back-end models that product developers can build on:

CIA goal Back-end models previewed
Confidentiality Bell-LaPadula model
Integrity Biba model, Lipner's integrity matrix, Clark-Wilson model
Availability Approaches we will look at in the coming module

So for the CIA triad, at the front end we deploy tools, but those tools need to be built on these models at the back end. Bell-LaPadula is a confidentiality model: a subject cannot read data above its clearance level, and cannot write data down to a lower level — this stops secrets from leaking downward. Biba is the integrity mirror image: a subject cannot write up to a higher integrity level, and cannot read down from a lower one — this stops untrusted data from corrupting trusted data. Clark-Wilson protects integrity through well-formed transactions and separation of duties. Lipner's integrity matrix combines the Bell-LaPadula and Biba rules into a single matrix for practical systems. For availability — making sure legitimate people can access resources whenever they need to for their business — we will look at how to achieve it. The chapter goes into each model in depth; today we only need the preview to see where the roadmap leads.

We also previewed the policy side. Earlier we classified controls into physical controls, administrative controls, and technical controls. In the coming module we focus more on the administrative side: the policies related to confidentiality, integrity, and availability, and how exactly you develop a policy or procedure to achieve a CIA requirement. We will look at what a deadlock is — a situation where two processes wait on each other forever and neither can finish — when a deadlock occurs, and what our recommendations are during development or in the production environment to avoid it. We will also cover denial of service (DoS) and distributed denial of service (DDoS) attacks — what they are and how to overcome them — including worked examples like network flooding attacks and how they happen.

So chapter two answers: now that we understand the CIA triad, what models did the scientists develop so that people building software can use them to achieve the CIA requirements at the base level? We will also touch on what a security policy is and what it covers, the different types of access control (something you know, something you have, something you are), multi-factor authentication (MFA), and how to achieve CIA through policies and models with examples of overcoming availability issues. After that we shift toward networks: when a connection is considered an internet versus an intranet, how two systems connect, and the connecting devices starting from the hub (an unintelligent device) to switch to router and beyond, plus the basics of the seven-layer OSI model — physical, data link, network, transport, session, presentation, and application.

4.1.3 Today's Topics and Exam Scope

Today we go deeper into four connected topics and one pair of indicator concepts:

  • Threat hunting — what it means and what to understand from it.
  • Threat intelligence — what it means and where the information comes from.
  • Threat modeling — a threat model perspective, with more scenarios and practical examples.
  • Advanced persistent threats (APTs) — what they are, examples of real APT attacks, and how we can prevent or detect them. This is not in the syllabus, but people in the industry are commonly asked about it, so we go in depth to conclude chapter one.
  • Indicators of attack (IOA) and indicators of compromise (IOC) — the newest part of the session.

Exam note: From the exam perspective, the first three topics — threat hunting, threat intelligence, and threat modeling — are in the syllabus. The rest (APTs and IOA/IOC) is more for knowledge and understanding, so that you are clear on the technology side and not just reciting "what is a threat, what is a vulnerability, how threat and vulnerability interlink, and what a risk score is." Today's material is the theoretical approach with a little touch of the practical side.

Think of today's session as a pyramid: the syllabus topics (hunting, intelligence, modeling) form the examinable core that you must be able to explain and compare, while APTs and IOA/IOC form the professional layer beneath it — the vocabulary you will hear daily in a security operations job, even if no exam question asks for it directly.

4.2 Proactive versus Reactive Security

4.2.1 The Two Approaches

Would you rather treat a disease after it has spread, or stop it before it starts? That question is the whole debate between reactive and proactive security, and every method in today's session exists because of it.

There are two ways to approach security: reactive and proactive. In the reactive approach, you act only after something has happened — once an incident has occurred, you react to it, with the goal of minimizing the incident's impact as much as possible. In the proactive approach, you take measures before an incident happens — you look for weaknesses and threats while the system is still healthy, so that the incident either never occurs or lands on a smaller target.

The honest position underneath all of this: we can never make any system 100 percent secure. Security is not a switch that can be flipped to "safe"; every system has a residual risk that no amount of controls removes. So we try to maintain an infrastructure that is as secure as we can keep it, and at the same time, if something happens that is outside our control, the impact should be as small as possible. Both approaches chase that same goal — minimize the impact to the systems and to the organization — through different timing.

Intuition: Think of a building with a fire department. The reactive part is the fire engine that arrives after the fire starts, working to keep the harm small. The proactive part is the sprinkler system, the fire drills, and the inspections that stop most fires before they start. A security team needs both: the sprinkler is not 100 percent effective, and when a fire does break out, the faster the engine arrives, the smaller the harm.

The analogy maps cleanly: reactive security = the fire engine (respond after the incident, minimize impact); proactive security = sprinklers, drills, inspections (measures taken before an incident happens). The analogy breaks where the physics differ — a fire engine's response time is measured in minutes, while a security incident's dwell time is often measured in days or months, which is exactly why proactive methods matter so much in security.

4.2.2 Control Classifications Recap

Two ways of classifying controls were recapped, and both classifications are needed to describe a single control. One classification is by nature:

  • Physical controls are the things you implement at the physical level that you can actually see — locks, guards, walls.
  • Administrative controls are the organization's policies and procedures — whatever has been drafted as documents.
  • Technical controls are about using technology to achieve or control something — software, hardware, or configuration.

The second classification is by how the control works: is it trying to prevent something (preventive), detect something (detective), correct something (corrective), or deter somebody — make them afraid — (deterrent)? That gives preventive, detective, corrective, and deterrent controls, and so on. The two classifications are independent — an access-control list on a server is a technical, preventive control, while a security awareness training session is an administrative, preventive control.

Classification Type Example
By nature Physical Locks, guards, walls, CCTV cameras
By nature Administrative Policies, procedures, background checks
By nature Technical Firewalls, antivirus, access-control lists
By function Preventive Blocking rules that stop an attack from succeeding
By function Detective Logs and alarms that reveal an attack in progress
By function Corrective Restoring systems after an incident, patching the hole
By function Deterrent Visible cameras and warning banners that discourage attackers

4.2.3 Why Detection Speed Matters

Once this classification is clear, the principle follows: we should always try to prevent something — that is the first approach. If you are not able to prevent it, the next step is to detect it as early as possible. The quicker the time it takes you to detect that an incident is happening, the smaller the impact on the organization — "very very very minimum," as the class put it. But if the amount of time between the incident happening and your detection is long, then by the time you respond, the attack has already done the maximum damage it was trying to do.

Detection delay is the enemy. Picture a graph with time on the horizontal axis and damage on the vertical axis. From the moment an attacker gets in, the curve climbs — data is copied out, systems are corrupted, credentials are stolen. Where your organization sits on the detection line decides how much of that curve you inherit. Detect in minutes, and the impact is a thin slice near the origin. Detect after months — the typical dwell time of a hidden intrusion — and you inherit nearly the whole curve. The shape is the same for every incident; only your detection speed changes how much of it you eat.

That is exactly the reason threat hunting, threat intelligence, and threat modeling exist: they are different methodologies, different ways, so that we can at least reduce the impact that is happening to our systems or our organization. Each attacks a different part of the problem — threat intelligence tells you what is coming, threat modeling tells you where it can land, and threat hunting looks for what is already inside without your sensors having fired.

4.3 Threat Hunting

4.3.1 What Threat Hunting Is

The name says it: hunting means you are actively searching for something. In threat hunting, what you are hunting for is threats — things that can harm your assets. An asset is anything valuable to the organization: your laptop, your desktop, your databases, your networks — anything where the organization's data is stored. The activity is carried out by trained individuals and experts called threat hunters. They actively search to identify scenarios that may result in a threat to the organization, and once they identify one, they try to isolate those advanced threats — the ones that try to bypass the controls you have implemented. So threat hunting is a proactive process done by security engineers or threat hunters.

The professor's analogy — a country's investigation department. Think of a country like India, which also faces threats from enemy states that want to find loopholes in the country's defenses. For that, there is a dedicated investigation department that continuously looks for possible threats to the country. The scope for that department is protecting the country; the scope for cyber security engineers is protecting our infrastructure. Same activity, different domain — both are continuously looking for hidden ways in, rather than waiting for an attack to announce itself.

The key contrast: threat hunting is not about waiting for something to act. You are not waiting for the alerts in your SOC (security operations center) — where you have monitoring tools and around-the-clock alerts configured for your infrastructure — to be triggered so that you react and resolve an issue. Threat hunting proactively looks for the hidden areas, the hidden ways, where somebody is trying to bypass your existing security solutions. You are proactively seeking the hidden threats already lurking in your system.

Q: If threat hunting does not wait for alerts, how does it relate to the alert and incident process we usually talk about in a SOC?

A: Hunting sits before the alert process. The SOC waits for its alerts to fire; threat hunters deliberately look for the threats that did not trigger any alert — the ones bypassing the security solutions — before they cause damage.

Threat hunting is best understood as a process rather than a single tool or action — a loop that skilled analysts run again and again against the telemetry the organization already collects:

Purpose: Threat hunting exists to find intrusions that automated detection missed — malware-free intrusions, living-off-the-land techniques, and quietly evasive attackers that never trip a signature or a configured rule.

Inputs & outputs: The inputs are hypotheses about what an attacker could be doing (for example, "an attacker might be using PowerShell to run scripts from memory"), the organization's telemetry (endpoint, log, and network data), and known threat behaviors. The output is a verdict per hypothesis — confirmed, not found, or partially matched — plus new detection rules and IOCs that make the next hunt and the next alert better.

A typical hunt runs through five steps:

  1. Form a hypothesis. Pick a specific behavior an attacker would need to show (odd logins, unusual outbound connections, unusual process chains).
  2. Collect evidence. Pull the relevant records from the EDR, the log collection platform, or other telemetry sources for the time window of interest.
  3. Search and analyze. Look for the pattern across the whole environment, not just one machine — attackers move laterally, so the evidence may be spread out.
  4. Decide. Confirm the threat (and contain it), rule it out, or flag it for follow-up.
  5. Improve. Turn what was learned into new detection rules or better hypotheses for the next hunt.

Trace of a small hunt. Hypothesis: "a phishing victim in Finance is running a remote administration tool that was never approved." The hunter searches EDR telemetry for process executions of common remote-access tools across all workstations. One hit appears: workstation W-041 in Accounts Payable ran such a tool at 1:14 a.m. from a new folder under AppData. The hunter checks the user — she was not logged in at that time — and follows the process tree back to a malicious email attachment opened the same day. Verdict: confirmed; the workstation is isolated, the account is reset, and a detection rule is written for that tool's process name. Sense-check: every step used data the organization already had; no alert ever fired for this tool because no rule watched for it — which is exactly why hunting is needed.

When to use it, and what it costs. Threat hunting is the right tool when you need to shorten the dwell time of stealthy attackers — it is what turns "we did not see it" into "we looked for it deliberately." The alternatives are pure alert-based monitoring (cheaper but blind to undetected intrusions) and penetration testing (active, but a scheduled snapshot rather than a continuous watch). The costs are real: hunting needs skilled analysts who are expensive and scarce, and the hunts themselves are labor-intensive, so organizations prioritize hypotheses that match their own risk profile — finance targets first, least-privilege behavior second, and so on.

The one-line recap: threat hunting is a proactive, human-driven process that deliberately searches for threats that evaded automated detection — and it exists precisely because detection speed decides damage.

4.3.2 Assets and the Data Lifecycle

To hunt threats you have to know what you are protecting. Data flows through a data lifecycle management process: starting from collection, then processing, then sharing with sub-vendors or subcontractors (for example, sending data to AWS to process), then storage. Once a contract expires, retention rules apply — that is where retention comes in — and finally deletion of the data.

Lifecycle phase What happens Security question
Collection Data is gathered from users, systems, or clients Was only the data we are allowed to collect captured?
Processing Data is worked on, transformed, computed Is the processing environment trusted and monitored?
Sharing Data is sent to sub-vendors or subcontractors (for example, AWS) Is the receiving party bound by the same controls?
Storage Data is held for the business need Is data at rest protected (encryption, access control)?
Retention Data is kept per contract or regulatory rules after the contract expires How long must it be kept, and who may still access it?
Deletion Data is destroyed at the end of retention Is deletion complete, including backups?

In every one of these phases, whether you are a service provider for a client, the data must be handled securely: data at transit (moving between systems), data at rest (stored), and data at processing (being worked on) all need security. Threat hunting is one of the processes that keeps all of these phases secure proactively, before an incident happens — because an attacker who exfiltrates during the sharing phase leaves different traces than one who tampers during processing, and a hunter checks both.

4.3.3 Event, Alert, Incident, Security Incident, Breach

A common chain of terminology runs through every security operation, and the class was asked to work out the interlink: eventsalertsincidentssecurity incidentsbreaches.

Q: How are events, alerts, incidents, security incidents, and breaches interlinked? Which turns into which?

A: An event turns into an alert. An alert can turn into an incident. An incident can turn into a security incident. And a security incident can turn into a breach.

The professor noted that only a handful of students respond to such questions even though the class has close to fourteen participants, and stressed that attempting is more important than being right — even a wrong answer helps you build the link, and for the teacher it makes the explanation easier to target. That is the point of the chain: each stage is a decision point, and you can only move along it if you understand what each term means.

The full explanation, step by step. Our systems generate many events — on Windows laptops, desktops, servers, and so on. An event is simply something that happened: a process started, a user logged in, a packet arrived. We do not need to monitor all of them. We define what is required for us to monitor and we set threshold values — values we define, and when something crosses them, the event is triggered to our monitoring tool. That is when an event turns into an alert.

Worked example — thresholds in a monitoring environment. An organization sets its monitoring thresholds as follows: "if CPU utilization in my cloud environment reaches 85 or 90 percent, trigger an alert; if memory utilization reaches some X value, trigger an alert." Each metric crossing its threshold is an event that becomes an alert, because it signals that service delivery may be affected. Suppose network utilization then climbs to 95 percent. The monitoring team — whether in the NOC (network operations center) or the SOC (security operations center) — does the necessary troubleshooting and investigates what best they can do so that the raised alert gets closed. They check whether the traffic hitting the servers has really reached 95 percent, or whether abnormal traffic hit the web server — maybe a denial of service has happened and a flood of pings is hitting the web server. There could be multiple reasons, and the engineers troubleshoot to find the reason for the spike in CPU, memory, or whatever the metric is. Verdict: the alert closes either way — resolved as a capacity problem or escalated as a security incident — but the investigation is what separates the two. Sense-check: the threshold did not decide what the incident was; it decided that someone should look.

The next stage: those alerts can turn into an incident. When we say an incident has happened, something resulted in an event — for example, a backup has failed, or somebody is unable to access a web server. Incidents can be operational incidents or security incidents. An incident is termed an information security incident when it impacts the CIA triad: if it impacts the confidentiality of your data, the availability of your systems, or the integrity of your data. And if the incident results in exposure of data — an exfiltration has happened, where an unauthorized person was able to view all the entries in your database or modify all the entries in your database — then that is a breach. A failed backup is an operational incident; a failed backup that lets an attacker restore their own data over your production database is a security incident; and an attacker who then walks out with the whole customer table has turned it into a breach.

Why did we go through all this? Because in threat hunting the point is: we should not wait for an alert to act. Threat hunting will have no alert involved. It is a proactive approach where experts proactively search for threats that are bypassing our security solutions.

4.3.4 Tools That Threat Hunters Use

The common tools deployed for threat hunting include EDRs (endpoint detection and response), IDS (intrusion detection systems), SIEM (security information and event management), and the application security testing family: SAST (static application security testing), DAST (dynamic application security testing), and SCA (software composition analysis). Threat hunters use these tools to identify — proactively, before anything is triggered — whether any threats are bypassing the security controls that have been deployed.

Tool family Full name What it watches
EDR Endpoint detection and response Behavior on endpoints (laptops, servers): process-to-process communication, unusual executions, file changes
IDS Intrusion detection system Network or host traffic for signs of an intrusion attempt
SIEM Security information and event management Central collection and correlation of logs and events from across the infrastructure
SAST Static application security testing Application source code, looking for vulnerabilities before the app runs
DAST Dynamic application security testing A running application, probing it the way an attacker would
SCA Software composition analysis The third-party libraries and components inside an application, checking them against known-vulnerability databases

Real-world: EDR, IDS, SIEM, SAST, DAST, and SCA are the standard tool families in a modern security operations team; threat hunters work in these tools daily, and most of their hunts begin as a query in the SIEM and end as a deep dive in the EDR.

4.4 Threat Intelligence

4.4.1 What Intelligence Means in Security

Intelligence is all about knowledge — an individual's knowledge. When you call a device intelligent, it acts on its own. Take networking devices: a hub is a plug-and-play device with nothing like a brain inside it; it just repeats whatever it receives — an unintelligent device. But a router or a layer 3 switch is different: you configure how the traffic needs to be redirected from which port to which port, whether the source IP addresses coming in are on a whitelist or a blacklist, and how much bandwidth to allocate to which IP addresses. That configurability is what makes it an intelligent device.

The professor's analogy — hub versus router. A hub is like a public notice board: whatever is pinned on it is copied to everyone, with no thinking involved. A router is like a trained postal sorter who knows each street, follows the rules you give it (which addresses are welcome, how much mail each street may receive), and decides where every letter goes. In security terms: the device that can be configured to make decisions is the intelligent one. The analogy breaks at the boundary of autonomy — even an "intelligent" router only does what its configuration says; human judgment is what supplies that configuration.

Threat intelligence works the same way: it is knowledge that you apply to prevent or mitigate cyber threats. It is as simple as knowing who your enemy is. Once you know who is trying to attack your network, system, or database, the next phase is to understand: who are these people, what is their motivation, and what techniques are they using to bypass our controls? Based on that, you can decide the strategies and controls to deploy, and you defend your systems according to their thought approach.

The professor's analogy — defending a country's borders. A country like India gets attacks coming via air, via sea, or via road; once you know the percentage chances of each, you deploy controls accordingly — more coastal patrols if the sea route is the likely one, more border fencing if the road route is. In the cyber world, threat intelligence is exactly that: gathering information about the threats that will happen to our infrastructure, our systems, our networks, and so on, and then spending defense effort where the attacks actually come from.

So the sequence is: gather knowledge about the enemy → understand their motivation and techniques → choose controls that match their approach. The country's military does not buy one type of defense for all borders; a security team should not buy one control for all threats.

4.4.2 Sources of Threat Intelligence

Where does the information come from? We have different sources of threat intelligence, and the class listed four:

Source What it is Example
Open source Publicly available information gathered through various online resources OSINT platforms, public breach databases, security blogs
Social media Clues related to cyber threats posted on social platforms A group announcing a new campaign on X (Twitter) or Telegram
Human intelligence Insights from person-to-person interaction If the SOC team and the NOC team correlate the occurrence of events happening in their monitoring tools, that correlation itself is a form of threat intelligence
Technical data analysis Analyzing the data you have Reviewing malware samples, reviewing server logs, or looking at the IP addresses you are getting attacked from, so you can understand the various approaches the attackers are using

We cannot improve threat intelligence alone — we are dependent on external resources. The more threat intelligence we have, the more precisely we can deploy the respective security controls at the defending end, so that the impact to the organization can be minimized. This is why commercial threat intelligence is rarely home-grown: the best feeds blend all four sources, because no single one sees the whole picture.

Q: How do we submit these assignments?

A: Email the assignment to me. Every response is tracked, and I will show the completion statistics around the fourth or fifth session — who has completed and who has not. Even if you miss a week, submitting in the next session is fine; the goal is active participation.

The professor gave a group assignment on these sources: some teams take open source intelligence and provide platforms where we can get OSINT notifications; some take social media intelligence and provide methods for how an organization can gather threat intelligence from social media; and teams were also asked to Google and find out whether there is a fifth category of threat intelligence source. (Many practitioners do count one: intelligence from dark web and criminal-community sources, where stolen data and attack services are openly traded — the class assignment is exactly the kind of research that surfaces this fifth category.)

The reason behind giving an assignment every week: at least it forces you to search and study some terminology related to the topic. When the exam comes, you can recollect what you already wrote in your assignment — because whatever has been discussed in class is what appears in the questions. The pattern can be different and the questions can be different, but the context is the same. Ten to fifteen minutes of research on each assignment is enough to recall it in the examination; a little step ahead — like searching "open source intelligence" and comparing multiple URLs to pick the best — is how you study and gather information on the topic.

Real-world: open source intelligence (OSINT), social media intelligence, and human intelligence feeds are real practices in commercial threat intelligence teams, often sold as subscriptions that blend all four sources — and the fifth, dark web intelligence, is exactly what vendors sell as "dark web monitoring."

4.4.3 Why Organizations Need Threat Intelligence

The chain of reasoning: we want to understand more about threats so we can secure our network and infrastructure; organizations get business from that infrastructure because clients are confident that whenever they share data with us as a vendor or service provider, there are enough controls implemented. Clients do due diligence — different types of audits. Some banking clients come themselves and do their client audits. Non-banking or non-financial sector clients refer to a third-party independent assessment report: it can be a SOC 1, SOC 2, or SOC 3 report (service organization reports), or it can be an ISO 27001 audit. Which one depends on where the business is expanding: in the US, most clients trust the SOC 2 report; some UK companies go with ISO certification. Whatever the wrapper — SOC 2 or ISO — inside it, the controls defined and framed by ISO and AICPA have one overall agenda: achieving the CIA triad.

So as part of proving we achieve confidentiality, integrity, and availability for client data and employee data, one of the controls shown to clients is having a threat engineering team that continuously and proactively monitors possible threats to our environment — and one of those techniques is improving or adding threat intelligence. Threat intelligence is not a luxury add-on; it is a marketable control. A service provider that can point to an active threat intelligence capability answers the client's due-diligence question "what do you do when a new attack appears?" with evidence rather than promises.

Real-world: SOC 1, SOC 2, and SOC 3 reports and ISO 27001 audits are the standard due-diligence artifacts in outsourcing deals; US clients lean on SOC 2, UK clients on ISO certification — and inside both, an auditor checks that threat intelligence feeds actually reach the monitoring team.

4.4.4 Threat Hunting versus Threat Intelligence

Threat hunting is about identifying or neutralizing threats before they can cause significant damage — staying one step above the attacker's point of view and minimizing the impact of a breach. Note again: we are minimizing impact, not nullifying attacks, because no company can ever say "I am 100 percent secure." There is always a thin line of area where attackers can successfully avoid the threats being addressed. Threat intelligence, by contrast, is about understanding the landscape from which threats are coming: knowing who your attackers are, what tactics they deploy, and how we as the defending organization prepare for those attacks.

Dimension Threat hunting Threat intelligence
Question it answers "What is already inside that we missed?" "Who is coming at us, and how?"
Timing Proactive, continuous search now Continuous gathering and analysis of external and internal knowledge
Main input Telemetry: EDR events, SIEM logs, network flows Sources: OSINT, social media, human intelligence, technical data analysis
Main output Verdicts on hypotheses, new detection rules Attacker profiles, motivation and technique reports, control recommendations
Skill profile Analysts who query and dig into tools Analysts who research, correlate, and report

So: threat intelligence gets inputs from different sources to know the landscape; threat hunting is the proactive approach where our dedicated security experts hunt for where we have chances of getting threats. Both exist to keep the impact of what slips through as small as possible — pick hunting when you need to find what is hiding inside, pick intelligence when you need to know what is coming.

4.5 Threat Modeling

4.5.1 What Threat Modeling Is

Every day brings news of a new threat to information technology — from hackers, ransomware, or unauthorized information disclosure. As a CISO, or as a manager handling a threat hunting team or a threat intelligence team, if I want to ensure that threat impact stays minimum, I need to know where to start. A model, by definition, is already a predefined approach: this is where you start, phase one, phase two, phase three. Threat modeling is knowing where to start, how to identify the threats, and how to assess the impact of those threats being successfully exploited. In one line: a threat model identifies the risks happening to the organization and prioritizes them. Where threat hunting is a proactive approach and threat intelligence is about gathering information, threat modeling is the way we identify those risks, mitigate them, and respond to them.

The professor's analogy — hurricanes and homeowners. A threat model may identify hurricanes as a risk for property owners in the south-eastern United States. Once the risk is identified, the threat model helps prioritize risks by doing a cost-benefit analysis, so you can address them in order — which needs to be prioritized first, and what is the cost of implementing those controls. You cannot go blind; there must be a priority. A homeowner does not fortify the roof, install storm shutters, and buy a generator all at once; they decide which protection gives the most safety per rupee first. This matches the risk management lifecycle from the previous session: identify the risk, assess the risk, respond to the risk, and monitor the risk.

Q: Is a threat model a combination of threat hunting, threat intelligence, and something else? And what is the difference between threat hunting and threat modeling?

A: They are related but distinct. Threat hunting is a proactive search for threats that bypass our security solutions. Threat intelligence is gathering information about the threat landscape. Threat modeling identifies and prioritizes the risks to our systems so we can decide which controls to deploy. Hunting finds the threats, intelligence informs us about them, and modeling decides where we must act.

In the current technology era, threat modeling is used to profile probable attackers and hackers and to identify the most likely avenues of attack — the hardware or software that will be most targeted. Profiling means behaving similar to the attackers: we try to see what avenues exist for them to use our hardware or software as a platform for attacks. As defenders, we then determine the controls needed to protect the system from those threats and decide which to implement based on a cost-benefit approach. The threat landscape overall comes down to hardware and software: we use hardware, deploy software on top of it, do processing, and generate output for our clients. Threats happen either to the hardware (the processing devices) or to the software we use to deliver the expected outcome — those are the two areas to focus on. The controls we choose remain the same families as before: physical, administrative, or technical; preventive, detective, corrective, or deterrent.

Threat modeling ultimately evaluates the threats and risks happening to our information systems. A note on terminology: "information system" versus "system" — the term is always the same, but it differs by context. In the auditing world we call them information systems; in the security world we call them normal systems. The evaluation tries to identify the likelihood — the chances — that a threat will succeed, and it assesses the organization's ability to respond to those threats — how well we can defend or respond. Both sides matter: a threat with high likelihood but easy to absorb may rank below a rarer threat the organization cannot handle at all.

4.5.2 Cost-Benefit Analysis

Even a good control is not automatically worth deploying. We must do a cost-benefit analysis: what is the cost incurred to deploy, for example, multi-factor authentication on an application before a user logs in, versus the actual value of the information sitting in that server? If the control cost is less than the value of the data, it is good. If the control cost is more than the value inside the server, there is no benefit.

The decision rule in plain math. Let be the total cost of deploying and running a control, and let be the value of the asset that the control protects (what the organization would lose if that asset were compromised).

A sharper version accounts for chance. Let be the chance that the threat succeeds against the asset without the control, and let be the loss if it does. The expected loss is the loss weighted by its chance of happening:

The control is worth deploying when its cost is less than the reduction in expected loss it brings — the expected loss without the control minus the expected loss with it. Every symbol named: is the control cost (money, staff time, and ongoing running costs), is the asset value, is a probability between 0 and 1, and is the monetary loss if the threat succeeds. If the control cost is less than the value of the data, it is good; if it is more, there is no benefit.

The professor's worked example from daily life: you have a home. The value of the goods inside that home is 10 lakhs. The controls you implement in depth — a layered approach: a CCTV camera, a dedicated physical security person guarding around the clock, and a 10-foot wall surrounding the entire home — cost 15 lakhs every month. But the actual asset value inside that home is only 5 lakhs. Is that beneficial to the person who did it? No. Should you go ahead and apply those controls? 99 percent of the time, no. (Note: the asset value was mentioned as 10 lakhs at the start of the class example and 5 lakhs a moment later. Either way the verdict is the same — 15 lakhs a month of control cost exceeds both figures, so the controls fail the cost-benefit test.)

Worked example — home security cost-benefit. The asset: the goods inside the home, worth lakhs (or 10 lakhs as first stated). The controls: CCTV camera + a round-the-clock guard + a 10-foot wall, costing lakhs per month. Compare: lakhs/month versus lakhs (even taking the higher figure, 10 lakhs, the result is the same).

Even for the first month alone the control costs triple the value of everything it protects, and the cost repeats every month. Verdict: the homeowner should not buy this level of protection for this value of contents — 99 percent of the time, no. Sense-check: if the control cost were 3 lakhs against a 10-lakh asset, the math flips and the controls would be worth considering; the principle is always cost below value, never cost above value.

The one percent where you must think again: if that requirement comes from regulators, or from financial bodies based on your type of business, you are mandated to follow it or you cannot do business at all. A new company entering the banking sector — take Paytm — must follow what the regulator (the RBI, the Reserve Bank of India) sets. If it does not follow, you know what happened in the news about Paytm in the recent days. So even when deploying a control we do a cost-benefit analysis, and based on it the business owner decides how to take it forward.

Real-world: this regulatory override of pure cost-benefit logic is the standard practice in banking — think of RBI-regulated payment banks like Paytm, or any financial mandate that leaves no choice but to implement the control. The cost-benefit analysis decides which controls; regulation decides that some controls exist.

4.5.3 The Three Goals of Threat Modeling

Remember the three goals of threat modeling.

Goal 1 — Identify our security requirements. Security requirements exist to protect our data, our client data, or to adhere to regulatory requirements — we have different requirements for different situations. If we run a dedicated project for a client, the client has their own security requirements. A financial or banking client may say: "I need a dedicated ODC — an offshore development center. Only the people doing the project for that client are allowed access; nobody else." To win that project, a service provider like IBM, TCS, or Infosys creates an ODC and implements the physical controls the client demanded. The client may also require a background verification before an employee is onboarded, and they define what that background verification means — sometimes a drug test that must be completed by the employee working on the project. All of this is identifying security requirements.

Goal 2 — Identify the vulnerabilities. Vulnerabilities interlink with the assets we are using: what type of servers, what databases, what versions — so we can understand the appropriate loopholes in those systems. You cannot find the loopholes until you have listed the assets, which is why goal 2 depends on goal 1's inventory.

Goal 3 — Qualify or quantify the risks. In risk analysis you can either qualify or quantify. The qualitative approach rates the risk as low, medium, or high; risks rated high get first preference, then medium, then low. The quantitative approach puts a number on it: it multiplies likelihood and impact into an expected loss.

Worked example — quantitative risk estimate. A payment platform estimates: "if this attack succeeds, 2 lakh transactions will fail; if 2 lakh transactions fail, this much is the impact — maybe 50 lakh rupees lost." Let the likelihood of the attack succeeding be estimated at 1 in 20 (0.05). The expected loss is:

Verdict: the organization should spend up to about 2.5 lakh rupees of controls against this specific attack — above that, the protection costs more than the risk it removes. Sense-check: the qualitative version of the same risk would simply be labeled "high" and ranked first; the quantitative version gives the budget to argue about. So you do a qualitative or quantitative assessment, and then you finally do the remediation.

4.5.4 The Four Ways to Respond to Risk

Remediation means responding to the risk, and there are four different approaches:

Option What you do When it makes sense
(1) Accept the risk Carry the risk on purpose "I don't have any alternative; I only have this vendor, I need to go with this vendor" — the residual risk after controls is small or the cost of treatment exceeds the risk
(2) Transfer the risk Move the financial burden to a third party Go with a cyber insurance provider — every company connected to the internet always faces a chance of attacks from outside, and even after implementing N number of controls, you take insurance
(3) Mitigate the risk Implement controls that lower the likelihood or the impact Implementing the necessary controls based on the cost-benefit analysis
(4) Avoid the risk Remove the risk by removing the activity Stop the project or stop that business altogether

So the four options: risk acceptance, risk transfer (insurance), risk mitigation (implement controls with cost-benefit analysis), and risk avoidance (stopping the business or project). Some frameworks split mitigation further into "reduce likelihood" (controls that make the attack harder) and "reduce consequence" (backups, disaster recovery, replication so the blow is softer), but the four-way classification is the standard core: accept, transfer, mitigate, avoid.

4.5.5 Common Threat Modeling Frameworks

When we say "model," somebody has already defined and developed it — we use those models for our organization. The available frameworks include STRIDE, DREAD, PASTA, VAST, OCTAVE, and NIST. NIST — the United States national standards body — must be followed by US organizations processing US government data. NIST has its own standards for everything: if you want to store data, there are controls to implement; for cybersecurity controls it publishes the NIST CSF (Cybersecurity Framework); for risk management there are the NIST SP 800-53 recommendations; even for hardening a Windows server, NIST has its list of controls to implement.

The one we discussed in the previous session is Microsoft's STRIDE — and STRIDE is an abbreviation, not a word. Each letter means a threat:

Letter Threat Meaning
S Spoofing Impersonating someone or something else
T Tampering Modifying data or code
R Repudiation Denying an action took place
I Information disclosure Exposing data to unauthorized people
D Denial of service Making a service unavailable
E Elevation of privileges Gaining higher access than allowed

The other frameworks approach the same job differently, and the contrast is what you must be able to state in a few lines:

  • DREAD is a rating system, not a list of threats: each threat is scored from 0 to 10 on Damage potential, Reproducibility, Exploitability, Affected users, and Discoverability, and the scores rank which threats to fix first.
  • PASTA (Process for Attack Simulation and Threat Analysis) is a risk-centric, seven-stage process that goes from defining business objectives to decomposing the application, analyzing threats and vulnerabilities, simulating attacks, and modeling the risk and impact.
  • VAST (Visual, Agile, and Simple Threat modeling) is built to fit Agile and DevOps: it uses an application view and an operational view so that developers and infrastructure teams each see the threats relevant to them.
  • OCTAVE (Operational Critical Threat, Asset, and Vulnerability Evaluation) is organizational: the organization's own staff run workshops to evaluate critical assets, threats, and current security practices.
  • The NIST approach frames everything around its framework (identify, protect, detect, respond, recover) and its control catalog (SP 800-53), and is mandatory for US government data.

Assignment: take one of the other models (DREAD, PASTA, OCTAVE, VAST, or the NIST approach) and give a gist of what its threat modeling is all about compared to STRIDE — three to four lines, for example "STRIDE approach is this, this, this, whereas OCTAVE's approach of threat modeling is this, this, this." Not ten pages. The point is that if tomorrow a question shows a person following a threat modeling approach based on OCTAVE, you should be able to segregate: this is related to STRIDE, this is related to OCTAVE, this is related to NIST.

Exam note: Be able to tell STRIDE apart from DREAD, PASTA, OCTAVE, VAST, and NIST approaches at a simple-definition level — the distinction is exactly the kind of thing that appears in a "which of the following options is correct" question. Memorize the mnemonic itself (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privileges) and one identifying feature of each rival framework.

4.5.6 Where Threat Modeling Goes Wrong

Another way to define threat modeling simply: it is a conceptual analysis of cyber threats which involves putting oneself in the position of an attacker. You think like an attacker and try to see the possible threats to your infrastructure. The aim is to systematically identify the vulnerabilities or risks to your applications or systems in a structured manner at every stage, and then derive the necessary security measures — the controls — based on cost-benefit analysis.

Threat modeling is also an elementary approach: you go element by element through your infrastructure or architecture diagram. You know what traffic is coming in, where it gets processed, where the data is stored, where authentication happens, and where the output is generated for the client. You visit each element of the architecture diagram and weigh how important it is; based on that, you see what threats will happen to those elements. Defining all possible threats for the organization is of elementary importance: you analyze and define which data and which areas must be protected in the company. Suppose you have 50 servers — you do not implement the same number and level of controls on all of them. You look at the criticality and sensitivity of the data being stored or processed in each server, the regulatory requirements applicable to each, and which servers process data for your top 50 clients based on the revenue they generate. From those criteria you say: servers of category A get a high number of controls, then category B, then category C. Some servers may process highly confidential data, some may process PCI data (payment card industry data) — so you understand what data is processed and stored on each server and apply the necessary controls.

The failure mode — wrong assumptions kill the model. If there are many wrong options or wrong assumptions in your threat model, the whole threat modeling fails. Example: a server processes highly confidential information, but because of your interview techniques, or because the architect gave you incorrect answers saying "there is no personal information here," you mark the category as low. Controls implemented are minimal. Tomorrow an attack succeeds, and later you find out the data stored on those servers relates to the payment card industry or to SSN (Social Security) numbers. Then you have a huge impact. If it is not possible to identify all cyber threats, or if the cybersecurity team makes incorrect assessments, the threat model you have developed goes in the wrong direction — at an early stage only. The lesson: every assumption about an asset's sensitivity must be verified, because the whole control budget flows from it.

Threat modeling is not a one-time design review; it is the discipline that turns "we have 50 servers" into "these three servers decide whether we survive an attack, and they get the controls first."

4.6 Advanced Persistent Threats (APTs)

4.6.1 The Meaning of Advanced and Persistent

As always in cyber security, we start from the base, dictionary meaning. Advanced: like basic level, middle level, intermediate level, advanced level — advanced means the expert level. Not a scripted attack run by a beginner, but a campaign designed and executed by people at the top of their craft.

Q: What does the term persistent mean? I want the dictionary meaning, not the technical one.

A: Persistent means prevailing or existing. Something persistent continues to exist over time.

A second word, just as important for this topic, was looked up next:

Q: What do you understand by the term covert?

A: Covert means secret or hidden. A covert operation is one the people on the receiving end do not know about.

With those words clear: an advanced persistent threat (APT) refers to a complex and covert attack executed by highly skilled threat actors — super experts — usually targeting high-profile organizations. These attacks are often backed by nation states or sub-criminal organizations, and they remain undetected inside the victim's network for periods ranging from months to years. None of your detection systems were able to identify that the attack had succeeded in your infrastructure. Put the three words together and the name is the definition: expert-level ("advanced"), hidden ("covert"), and able to stay inside your network for a long time ("persistent").

Two terms worth locking in: infiltrate means entering into the network; exfiltrate means data coming out of the network. Entering a network with proper authorization is no issue. Entering without authorization, being successful, and then maintaining that access is the whole agenda of an APT: the attackers maintain persistence of access, and then collect whatever information they want or compromise whatever systems they want. Typically organizations and governments face this risk, because the losses are huge — financial damage, reputation damage, or the central data being stolen.

Exam note: APTs are beyond the syllabus — this is a knowledge-perspective topic — but the definition, the infiltrate/exfiltrate distinction, and the five stages below are the standard way it is explained in industry. The dictionary meanings (advanced = expert level, persistent = prevailing or existing over time, covert = secret or hidden) follow the subject's standing method: understand the base meaning of the term first.

4.6.2 The Five Stages of an APT Attack

Just as ethical hacking has its phases (six or seven, starting with reconnaissance and information gathering), a successful APT attack runs through five important stages:

# Stage What happens
1 Reconnaissance Collect information about the target organization
2 Infiltration Enter the network and gain unauthorized access
3 Establish a foothold Plant backdoors for remote access and command and control
4 Lateral movement Move across the network hunting valuable assets
5 Exfiltration and persistence Pull data out and maintain the access

The stages are a campaign, not a single exploit: the attackers invest time and resources at every step, and the whole loop can run for months. Each stage feeds the next — you cannot infiltrate usefully without reconnaissance, and you cannot exfiltrate anything of value without lateral movement.

Q: Where can I see the entire five stages of this APT attack?

A: Actually performing the stages needs tools and time, and it is beyond the syllabus. Understand the stages from a technical perspective. Once the syllabus is complete and we have one or two sessions left, we can discuss such questions — send them by email about one week in advance, and each question will be covered in those sessions.

A separate administrative question came up about assessment planning:

Q: What will be the syllabus for the internal exam on February 18th?

A: I am not aware of that exam yet. I will check with the administration and confirm. Typically it covers the first unit or the second unit.

4.6.3 Reconnaissance

In the first stage, attackers collect information about the target organization — the system or organization they are trying to attack — by inquiring into and reviewing its infrastructure, employees, partners, and customers. They may employ open source intelligence, social engineering tactics, or known vulnerabilities in publicly accessible systems. This is the same information-gathering discipline covered under OSINT in the threat intelligence section, applied offensively.

How do they investigate infrastructure? They want to understand your firewall configuration, which web server you deployed and its version, which email server you use and whether you have an email security gateway, which router brand you use (Cisco, DrayTek, and similar vendors), whether a firewall is in place and what type it is. Every one of these answers shapes the next phase: knowing the router vendor tells them which default credentials and known bugs to try; knowing the email server tells them which exploits are worth building.

They do this analysis using publicly available resources of the particular organization — a technique called passive reconnaissance, because it never touches the target's own systems. To find the DNS and public IP addresses of the organization, there are different online sites that help identify the public IP of the DNS server. They can run traceroute — a utility that shows the path a packet takes from your source to the destination, and reveals whether firewalls sit in between. They can also port scan the target — systematically testing which network ports are open — to learn which services are exposed; each open port is a candidate entrance.

Social engineering tactics are another route: on LinkedIn, a company posting a job requirement like "we need someone to support our Citrix servers" or "support Microsoft Office Exchange email servers" gives away that the organization uses Citrix or Exchange email servers. On the dark web, people keep posting or uploading gathered information. Using all of this, the attackers build at least a high-level understanding of how the organization is structured — and the higher the quality of this understanding, the smaller the chance they will trip a control later.

4.6.4 Infiltration

After gathering enough information about the target environment and knowing its vulnerabilities — for example, "this organization uses Sendmail OS version 10.1 while the latest is version 12" — they try multiple ways in. They may customize malware, or launch phishing attacks. There are two different attacks to keep apart here: phishing sends an email made to look legitimate; spear phishing sends that email to a specific group of people — for example only the executives of the organization: C-level execs, CEOs, CFOs, who are less knowledgeable in the information security domain. The message pretends "your password has expired" or "your account has been locked out, click here to regenerate your password" — the usual social engineering techniques. A mass email to a million addresses is phishing; the same email aimed at six named executives of one company is spear phishing. If the spear phishing succeeds, they gain unauthorized access to the system. The overall objective of this second phase, infiltration, is gaining unauthorized access to the systems.

4.6.5 Establishing a Foothold

Upon entering the network — usually by exploiting vulnerabilities or using the compromised credentials from the phishing attacks — attackers create a foothold by installing backdoors for getting remote access and establishing command and control communication with those servers. A backdoor means gaining access to a system in an unauthorized way, by bypassing the controls — as opposed to the authorized access that everyone knows about. It is a hidden door the legitimate owner never sees. There are countless attacks that show how a backdoor happened; recently, the SolarWinds attack succeeded in exactly this way, getting backdoor access to many organizations' systems. Once backdoor access is achieved, the next stage is command and control (C2): the attacker is commanding and controlling that server or device. Whatever command you pass, the server performs — that is the stage where you establish your control on the target system. The C2 channel also matters for stealth: attackers use it to install more tools, move data around, and hide the whole operation from the defenders.

4.6.6 Lateral Movement

After gaining access to the target network, attackers do not just leave. They move throughout the network to find what information is where: what different servers are available, what assets exist, and which has which type of information — all while ensuring they are not detected by the existing detection techniques. That is lateral movement: attackers move laterally within the network to find valuable assets while still avoiding detection of the malware or whatever was injected. This can involve privilege escalation techniques — for example pass the hash — or using stolen credentials to log in as legitimate users. Pass the hash works like this: Windows systems often authenticate using a password hash (a scrambled fingerprint of the password) rather than the password itself; if an attacker captures the hash from one machine, they can replay it to log in to other machines without ever knowing the actual password. If the attackers successfully log into a server where passwords are stored, they behave in such a way that even the behavior-based techniques you deploy for detecting abnormalities cannot detect them, because they are using legitimate credentials stored on those servers to access the shares and folders they want. From the defender's point of view, the traffic looks like a normal employee working late — which is why the hunt matters.

4.6.7 Data Exfiltration and Persistence

The final stage is data exfiltration — collecting the data and moving it out of the network — while maintaining persistence of the access. So the whole story: gather information, exploit vulnerabilities, establish command and control through backdoors, move across the infrastructure undetected by existing detection mechanisms, and finally exfiltrate the data and stay in. The "stay in" part is what separates an APT from a smash-and-grab: even after their first objective is achieved, the attackers keep the door open for the next round of theft or sabotage — which is why the response must include closing the backdoor, not just stopping the visible leak.

4.6.8 Famous APT Attacks

The class reviewed a few named APT campaigns for reference.

Worked example — the SolarWinds supply chain attack. SolarWinds is IT software used for managing IT infrastructure — most big companies with many employee accounts use tools like it for IT management. A supply chain attack works by compromising the software itself, so that every customer who installs the legitimate update also installs the attacker's payload. In SolarWinds, a Russian state-sponsored group compromised the software during its build, letting them infiltrate high-profile targets including US government agencies and many Fortune 500 companies. Step by step: (1) the group chose one widely used system — SolarWinds Orion — instead of attacking thousands of targets directly; (2) they injected a backdoor into the software update; (3) every organization that installed the update silently received the backdoor; (4) the attackers used that access to reach the highest-value targets inside each victim. Verdict: a supply chain compromise of one tool became an infiltration of thousands of networks. Sense-check: the attack chain matches everything above — a highly skilled, state-sponsored group; one widely used system; a vulnerability successfully exploited; infiltration into the network; then compromise of the high-profile targets.

  • Hafnium: Microsoft disclosed a Chinese state-sponsored group, Hafnium, that targeted Microsoft's Exchange servers using vulnerabilities to gain access to email accounts; overall they exfiltrated sensitive data. Hafnium is famous for performing attacks on defense, healthcare, and higher education.
  • Nobelium: another group involved in the SolarWinds campaign, which continued its cyber-espionage campaign targeting various organizations. In May 2021, Microsoft disclosed that Nobelium launched a wave of attacks using the USAID email system to spread malicious phishing emails — a tool of a legitimate organization turned into a launch pad.
  • APT41: targeted various industries including healthcare and telecommunications, gaining authorized access to computers and stealing sensitive information.

So in this way there are dedicated groups sponsored by states, and they follow the pattern: gather information, infiltrate, take command and control, and do the exfiltration of data.

Real-world: SolarWinds, Hafnium (Microsoft Exchange), Nobelium (USAID phishing), and APT41 are the four textbook APT case studies you will hear cited in security briefings — when a briefing says "another APT group was caught," these are the campaign shapes it means.

4.6.9 APT Scenarios You Might See in Monitoring Data

Beyond the theory, here are basic examples of what an APT scenario actually looks like in your environment:

Worked example — four APT scenarios in monitoring data. (1) An increase in logins at odd hours. A specific department's working hours are only from 9 to 6, yet you see increasing logins happening after midnight, 12 to 3 am. (2) Logins from unexpected IP addresses. Checking the SIEM logs, you notice login requests coming from an IP address the organization has never used before — for example, a request from a Russian-based IP address, which is not something the company expects. (3) Discovery of a background trojan host. (4) A large, unexplained flow of data — suddenly unexpected bundles of aggregated data are leaving. Verdict: none of these alone proves an APT — a developer on call could log in at 2 a.m., a VPN could explain a foreign IP — but several of them together, or one of them repeated, is exactly the pattern a hunter follows up. Sense-check: these scenarios are deliberately the ones signature-based tools miss, because each individual activity is technically legitimate.

Controls that counter these: in IAM (identity and access management) we have rule-based access (you define the rules), role-based access (you define roles for an end user and grant or deny access based on that role), and attribute-based access (you define attributes, and one parameter can be time — "this system access should happen only between 9 am and 6 pm"; even if you try outside that time, you cannot access). These are security controls you can show so that APT scenarios are minimized. Also: a spear phishing campaign where attachments with PDFs are continuously sent to all the C-level executives in the organization. These are general examples; there can be many more beyond these, but for academic purposes these are good APT scenario examples.

4.6.10 Best Practices to Minimize the APT Threat Landscape

The professor's list of practices organizations should employ so the threat landscape from APTs is minimized:

  1. Sensor coverage. Whatever sensors you use for your detection systems, the organization must deploy capabilities that give defenders full visibility across the entire environment, to avoid any blind spots — unknown spots become safe havens for cyber threats. Sensors spot abnormal activity and pass that information to the management console, which analyzes how process-to-process communication is happening and whether any abnormal communication is occurring — triggering blocking of the events that need to be blocked.
  2. Technical intelligence. Improve technical capabilities such as IOCs and IOAs (indicators of compromise and indicators of attack, covered next) and consume them into your SIEM. The well-known term SIEM has been replaced by the latest technology — XDR, extended detection and response systems — where data enrichment happens. This gives value-added intelligence because the system correlates multiple inputs: what is happening at the server level, at the network level, at our gateway level — and from that correlation you can find if something vicious is happening. A single event at one layer is noise; the same event echoed across server, network, and gateway is a campaign.
  3. Service providers. Partner with the best-of-breed cybersecurity firms — that is important.
  4. Web application firewall (WAF). A firewall can be implemented at different layers. If the firewall allows or blocks traffic based on source IP addresses, it is called a layer 3 firewall. If it allows or blocks based on MAC addresses (layer 2 is all about MAC-address-based communication), it is a layer 2 firewall. The web application firewall sits at the application layer — a layer 7 firewall — and is designed to protect the organization at the application level by filtering, monitoring, or analyzing the communication happening in HTTP mode (HTTP or HTTPS traffic) between your web application and the internet. Today, deploying a WAF is one of the techniques to counter zero-day exploits — attacks that exploit a vulnerability no one has patched yet, because the vendor has not even released a fix.
  5. Threat intelligence. The intelligence we discussed helps create attacker profiling campaigns and track or identify the malware family involved. These days it is more important to understand the context of the attacker than just knowing the attack itself happened — context is always the most important thing whenever you deploy a control or think about the threats happening to your organization. Knowing "a file was deleted" tells you nothing; knowing "the same group that hit three banks this quarter deleted it" tells you where to look next.
  6. Threat hunting. As discussed, threat hunting is performed by a group of security experts who continuously find out where exactly threats are getting in. Many organizations need 24x7 managed, human-based threat hunting to accompany the cyber security technology already in place. And nowadays we have gone beyond human-based: AI-based and machine-learning-based threat hunting — most organizations buying security products now focus not only on humans but also on current technologies that support AI/ML-based threat hunting techniques.

Real-world: CrowdStrike and Carbon Black (acquired by VMware) are examples of well-reputed endpoint security providers using this latest technology. Their agents continuously watch how communication happens between processes on a laptop; if an abnormal process-to-process communication appears — say a process suddenly accessing system configuration files from an external request — the tool triggers an alert or immediately blocks it. That is how endpoint security has moved beyond automation and signatures into EDR — endpoint detection and response.

4.7 Indicators of Attack and Indicators of Compromise

4.7.1 Two Kinds of Indicators

Always remember the method of this subject: when studying a new topic, first understand the base, English-dictionary meaning of the term. An indicator is a sign or signal — something that points to a condition. Here there are two kinds of indicators, pointing in two different directions in time.

Indicators of attack (IOA) means there are indications that some attack is about to happen. In practice, IOA focuses on detecting the intent of what an attacker is trying to accomplish — regardless of whether it is malware or an exploit used in the attack. Just like antivirus signatures, indicator-of-compromise-based detection cannot detect the increasing threats from malware-free intrusions and zero-day attacks; as a result, next-generation solutions are moving to an indicator-of-attack approach. Example: suddenly there is huge email traffic hitting your email gateway security where the attachments are more than expected — that would be considered, by the threat engines, as an indicator of an attack. No single malicious file has been confirmed yet; the behavior — a burst of attachment traffic — signals intent.

Indicators of compromise (IOC) means something has already happened — the compromise is already successful, and you are trying to find out at which stage the attack happened. The professor's shorthand: IOA shows the chances of an attack before it happens; IOC means the attack already succeeded and you are finding the indicators — "the attacker logged into this system and did this, this, this." IOCs are the artifacts or evidence that indicate a system or network has been compromised by a cyber attack. They are typically used in the incident investigation of security incidents: the moment a compromise happens, the incident security response team pitches in and finds out where exactly the compromise happened and whether there is any possibility to mitigate the impact of the breach. IOCs are also described in forensics — deep investigation to identify where exactly the breach happened. Investigators usually gather this data after being informed of a specific incident, on a scheduled basis, or after the discovery of unusual callouts from the network — for example, unusual requests from different ports trying to connect to your web server or to get access to your file servers. Ideally this information is gathered to create smarter tools that can detect and quarantine those files in the future — that is the main objective of IOCs: one benefit for forensic investigation, another for building smarter future tools that quarantine matching files.

Dimension IOA — indicators of attack IOC — indicators of compromise
Direction in time Forward: the attack is about to happen Backward: the compromise already happened
What it focuses on The attacker's intent and behavior pattern The artifacts and evidence left behind
Example A sudden burst of attachment traffic hitting the email gateway A known malicious file hash found on a server
Typical use Next-generation detection engines, proactive defense Incident investigation and forensics, quarantine rules
Catches Malware-free intrusions and zero-day attacks that leave no known signature Known-bad artifacts that have been seen before

Exam note: IOA and IOC are beyond the syllabus — knowledge-perspective material — but the one-line distinction is the key thing to remember: IOA = before the attack, intent-focused; IOC = after the compromise, evidence-focused.

4.7.2 The Bank Robbery Analogy

To anchor the IOA idea, the professor walked through how a criminal would plan to rob a bank in the physical world.

Worked example — the bank robbery walkthrough. A smart thief first cases the bank — this is his reconnaissance. He builds a complete understanding of where the bank is located, what the entry points and exit points are, where the vendors enter, what time the employees enter, when the traffic is huge and most customers are inside, and where the money is stored in the lockers and when those lockers open. He also studies the vulnerabilities: who checks where, whether anybody can enter, what levels of checks exist. Once he determines the best time and tactics to strike, he proceeds to enter the bank. Immediately he disables all the security controls — the CCTV cameras and other alarm mechanisms. He then moves toward the vault and attacks, trying to crack the combination. If he succeeds, he loots the entire amount and makes his escape — meaning you cannot trace him back — and the mission is complete.

Now map it back: indicators of attack are nothing but the series of behaviors this robber must exhibit to succeed — driving around the bank to identify the target, parking, entering the building, moving toward the vault. If there is a suspicious person moving around the bank all week, that is an indicator of attack. Crucially, each activity on its own does not indicate an attack is imminent:

Stage of the robbery Cyber equivalent Alone, it looks like...
Casing the bank Reconnaissance (OSINT, port scans, job ads) A curious visitor, an interested researcher
Parking and entering Infiltration (phishing, credential use) A customer, a legitimate user logging in
Disabling controls Neutralizing detection (blocking alarms, killing sensors) A technician doing maintenance
Moving toward the vault Approaching the valuable asset (lateral movement) An employee accessing shares
Getaway without trace Exfiltration without trace (data out, logs cleaned) A large legitimate data migration

Legitimate people also park their vehicles, enter the bank, and withdraw cash; even opening the bank vault and withdrawing cash is not necessarily an indicator of attack — it is a legitimate daily task when done by an authorized person. It is the combination of these activities that should trigger your security events and systems to fire an indicator of attack. Verdict: the pattern, not the parts, is the indicator. Sense-check: this is why IOA-based engines model sequences of behavior — a single "suspicious" event is almost always explainable, but casing + entry + control-disabling + vault access is a story.

4.7.3 Indicators of Compromise in Forensics and Detection

The contrast with IOCs: whereas IOAs point forward, IOCs point backward. For example, malware has executed in the system and is doing a lot — modifying the program files, deleting existing files. All of that indicates the system has been compromised. Once you know a compromise succeeded on one system, you quarantine that system so the compromise does not spread across your LAN, and forensic investigation identifies exactly where the breach happened.

The two indicator types work as a pair across time: IOAs try to catch the attack while it is still unfolding, and when one slips through, IOCs are what let the incident team find where it landed and what it touched. So your indicators of compromise and indicators of attack together help build a strong threat intelligence system in the organization, so that the chances of advanced persistent threats exploiting the vulnerabilities in your systems can be minimized — each confirmed IOC feeds the detection rules, and each observed IOA pattern feeds the next hunt.

Exam Guidance Summary

The exam-facing picture of this session, collected in one place:

  • Syllabus scope: The first three topics of the session — threat hunting, threat intelligence, and threat modeling — are part of the syllabus. APTs and IOA/IOC are beyond the syllabus; they are for knowledge and depth, though they are common in industry conversations.
  • The internal exam: An internal exam is scheduled for February 18th. The exact syllabus will be confirmed with the administration; typically it covers the first unit or the second unit. The professor plans to make sure the syllabus is completed before the examination so students are academically ready.
  • Assignment-based study: Weekly assignments exist so that you study at least some terminology — 10 to 15 minutes of research is enough. In the exam, whatever was discussed in class is what the questions cover; the pattern can be different and the questions can be different, but the context is the same. Recollecting your own assignment work is the study strategy. The professor tracks every submission and shows a completion tracker around the fourth or fifth session.
  • Definition-style questions: The recurring method in this subject is: understand the base, dictionary meaning of a term first (advanced, persistent, covert, indicator, threat). Expect definition and meaning questions built on that method.
  • Model distinction questions: Be able to tell STRIDE apart from DREAD, PASTA, OCTAVE, VAST, and the NIST approach in a few lines — the kind of distinction that appears in a "which of the following options is correct" question. One identifying feature per framework is enough: STRIDE lists six threat types, DREAD scores them, PASTA simulates attacks, VAST fits Agile, OCTAVE uses in-house workshops, NIST follows its framework and control catalog.
  • What is not on the exam: The five APT stages are beyond the syllabus; performing them requires tools and is not exam material. If there is time after the syllabus is completed, out-of-syllabus questions can be discussed in the remaining sessions — students were asked to email their questions about one week in advance.
  • The one-line distinctions that anchor the session: reactive acts after, proactive acts before; hunting looks inside, intelligence knows the outside, modeling decides where to act; IOA signals before, IOC proves after.

Key Industry Applications

Where this session's concepts show up in real security work:

  • Security operations: SOC and NOC teams, always-on monitoring, thresholds on CPU (85–90 percent) and memory, and the event → alert → incident → security incident → breach chain are the working vocabulary of every monitoring floor.
  • Threat hunting tools: EDR (CrowdStrike, Carbon Black/VMware), IDS, SIEM, SAST, DAST, and SCA are the standard tool families threat hunters use to find threats that bypass deployed controls.
  • XDR: SIEM has evolved into extended detection and response (XDR) with data enrichment, correlating events at server, network, and gateway levels.
  • Threat intelligence sources: OSINT platforms, social media intelligence, human intelligence, and technical data analysis (malware samples, server logs, attacker IPs) feed real commercial threat intelligence teams; social media (LinkedIn job posts) and the dark web are practical OSINT sources.
  • Due diligence and audits: SOC 1, SOC 2, and SOC 3 reports (trusted by US clients) and ISO 27001 audits (favored by UK companies) are the third-party independent assessment reports clients demand; inside, the controls framed by ISO and AICPA all target the CIA triad.
  • Cloud shared responsibility: AWS and GCP as CSPs, SaaS/PaaS/IaaS models, and the RACI matrix (who is responsible for which activity) govern who secures what in the cloud.
  • Regulatory override of cost-benefit: Regulators such as the RBI mandate controls (Paytm example) even when pure cost-benefit analysis says no — 99 percent no, 1 percent mandated yes.
  • Banking outsourcing practice: Dedicated offshore development centers (ODCs) with background verification and drug-test requirements are how service providers like IBM, TCS, and Infosys meet banking client security requirements.
  • Supply chain risk: The SolarWinds supply chain attack shows how compromising one IT management tool infiltrates US government agencies and Fortune 500 companies.
  • State-sponsored groups: Hafnium (Microsoft Exchange; targets defense, healthcare, higher education), Nobelium (USAID email system phishing waves), and APT41 (healthcare and telecommunications) are named campaigns to recognize.
  • Network defense layers: Layer 2 firewalls (MAC address based), layer 3 firewalls (source IP based), and the layer 7 web application firewall (filtering, monitoring, and analyzing HTTP/HTTPS traffic between web application and internet) counter zero-day exploits.
  • Endpoint modernization: Beyond-signature EDR behavior analysis — process-to-process communication monitoring and blocking abnormal access to system configuration files — is how modern endpoints are defended.
  • AI/ML threat hunting: Beyond 24x7 human-based threat hunting, AI-based and machine-learning-based threat hunting is what organizations now expect from security product providers.
  • Cyber insurance: Risk transfer through cyber insurance is standard practice for any internet-connected organization, alongside risk acceptance, risk mitigation, and risk avoidance.

CS Lecture 4 notes · Threats in Depth: Threat Hunting, Threat Intelligence, Threat Modeling, APTs, and Indicators

Cyber Security· postgraduate· 2026-08-16

Sections Breakdown

1Course Context and Roadmap

Recap of chapter one (CIA triad, AAA, threats, attack surfaces and trees, the strategies wheel and cloud shared responsibility), a preview of the CIA back-end models in chapter two, and today's exam scope.

2Proactive versus Reactive Security

Reactive versus proactive approaches, the control classifications by nature and by function, and why detection speed decides how much damage an incident does.

3Threat Hunting

What threat hunting is, the data lifecycle and assets, the event-to-breach chain with threshold-based monitoring, and the EDR, IDS, SIEM, SAST, DAST, and SCA tool families.

4Threat Intelligence

Intelligence as knowledge about the enemy, the four sources of threat intelligence, why organizations need it for client due diligence, and how it differs from threat hunting.

5Threat Modeling

Risk identification and prioritization, cost-benefit analysis with expected loss, the three goals, the four risk responses, and the STRIDE, DREAD, PASTA, VAST, OCTAVE, and NIST frameworks.

6Advanced Persistent Threats (APTs)

The meaning of advanced, persistent, and covert, the five stages of an APT campaign, named attacks such as SolarWinds, and best practices to minimize the APT threat landscape.

7Indicators of Attack and Indicators of Compromise

IOA as forward-looking intent detection and IOC as backward-looking evidence, the bank robbery analogy, and how the two work together in forensics and detection.

8Exam Guidance Summary

The exam-facing picture of the session: syllabus scope, the internal exam, assignment-based study, and the model-distinction questions to expect.

9Key Industry Applications

Where the session's concepts show up in real security work: SOC/NOC vocabulary, XDR, due-diligence audits, supply chain risk, and AI/ML threat hunting.

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.

Course Context and Roadmap

Must-know: Chapter one built the foundations (CIA triad, AAA, threats, attack surfaces/trees, the strategies wheel); chapter two adds back-end models per CIA goal; of today's topics only threat hunting, threat intelligence, and threat modeling are in the syllabus.

⚠️ Top pitfall: Treating cloud security as identical across service models: the client's responsibility changes completely between SaaS, PaaS, and IaaS, so the RACI split must be re-derived for each subscription level.

Self-check: Which back-end model is associated with achieving confidentiality, and which with integrity?

Connects to: Proactive versus Reactive Security, Threat Hunting, Threat Intelligence, Threat Modeling

Proactive versus Reactive Security

Must-know: Reactive = respond after the incident; proactive = act before it; no system is 100 percent secure, so the shared goal is minimizing impact, and faster detection means smaller impact.

⚠️ Top pitfall: Relying on one classification alone: a control needs both its nature (physical, administrative, technical) and its function (preventive, detective, corrective, deterrent) to be described fully.

Self-check: If an incident happens and you detect it only months later, why is the damage likely to be near maximum?

Connects to: Threat Hunting, Threat Intelligence, Threat Modeling

Threat Hunting

Must-know: Threat hunting is proactive searching for threats that bypass security solutions, deliberately run before any alert fires; the event-to-breach chain is event → alert → incident → security incident → breach, and an alert is an event that crossed a defined threshold.

⚠️ Top pitfall: Confusing threat hunting with alert response: hunting looks for threats that generated no alert at all, so it must be driven by hypotheses, not by the SOC queue.

Self-check: A CPU utilization spike crosses 85 percent and triggers a notification. What has the event turned into, and what could it become next?

Connects to: Proactive versus Reactive Security, Threat Intelligence, Indicators of Attack and Indicators of Compromise

Threat Intelligence

Must-know: Threat intelligence is knowledge about the enemy (who, motivation, techniques) gathered from open source, social media, human intelligence, and technical data analysis, used to deploy the right controls; hunting finds what is inside, intelligence tells you what is coming.

⚠️ Top pitfall: Treating threat intelligence as a list of malware hashes: the value is the context — the attacker's motivation and techniques — not the raw indicators.

Self-check: An organization is attacked repeatedly from a specific region. Which source of threat intelligence would help it understand the attacker's techniques?

Connects to: Threat Hunting, Threat Modeling, Indicators of Attack and Indicators of Compromise

Threat Modeling

Must-know: Threat modeling identifies risks and prioritizes them via cost-benefit analysis (deploy control when C < V; expected loss = likelihood × impact); four risk responses are accept, transfer, mitigate, avoid; STRIDE's six threats must be distinguished from DREAD, PASTA, VAST, OCTAVE, and NIST.

⚠️ Top pitfall: Marking a server 'low' based on unverified assumptions when it actually processes PCI or SSN data — wrong assumptions send the whole threat model in the wrong direction.

Self-check: A control costs 8 lakhs a year and protects an asset worth 3 lakhs. Should it be deployed under pure cost-benefit logic?

Connects to: Proactive versus Reactive Security, Threat Intelligence, Advanced Persistent Threats (APTs)

Advanced Persistent Threats (APTs)

Must-know: APT = advanced (expert level) + persistent (existing over time) + covert (hidden); five stages: reconnaissance, infiltration, foothold, lateral movement, exfiltration and persistence; infiltrate = entering the network, exfiltrate = data leaving it.

⚠️ Top pitfall: Thinking an APT is a single exploit: it is a multi-stage campaign lasting months to years, and each individual activity (odd-hour login, foreign IP) is technically legitimate on its own — only the pattern reveals it.

Self-check: A login appears at 2 a.m. from a foreign IP address in the SIEM logs. Why is this alone not proof of an APT?

Connects to: Threat Hunting, Threat Modeling, Indicators of Attack and Indicators of Compromise

Indicators of Attack and Indicators of Compromise

Must-know: IOA = before the attack, intent-focused; IOC = after the compromise, evidence-focused; IOCs are artifacts used in incident investigation and forensics to detect and quarantine; IOA-based engines catch malware-free intrusions and zero-days that signatures miss.

⚠️ Top pitfall: Treating a single behavior (a login at an odd hour, a large data transfer) as proof of an attack — IOA only fires on the combination of behaviors, because each one alone is also legitimate.

Self-check: A malware sample modifies program files on a server. Is that an indicator of attack or an indicator of compromise, and why?

Connects to: Threat Hunting, Advanced Persistent Threats (APTs)

Exam Guidance Summary

Must-know: Only threat hunting, threat intelligence, and threat modeling are in the syllabus; the rest of the session is for knowledge; definition questions follow the dictionary-meaning method and model-distinction questions need one identifying feature per framework.

⚠️ Top pitfall: Spending exam revision on the five APT stages or IOA/IOC detail: these are beyond the syllabus and are tested only indirectly through class-discussed context.

Self-check: Which of today's topics are actually part of the syllabus?

Connects to: Course Context and Roadmap, Threat Hunting, Threat Intelligence, Threat Modeling, Advanced Persistent Threats (APTs), Indicators of Attack and Indicators of Compromise

Key Industry Applications

Must-know: The tool families and named campaigns discussed in class are the ones that appear in industry briefings: EDR/IDS/SIEM/XDR/WAF, SolarWinds, Hafnium, Nobelium, APT41, CrowdStrike, and Carbon Black.

⚠️ Top pitfall: Treating SIEM as the end of monitoring evolution: the industry has moved to XDR, which correlates server, network, and gateway events with data enrichment.

Self-check: Which firewall layer protects HTTP/HTTPS traffic between a web application and the internet?

Connects to: Threat Hunting, Advanced Persistent Threats (APTs)

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.