Process Isolation
& Patching
Understand how operating systems isolate processes, what happens during privilege escalation, and why timely patching is a critical defense.
What Is a Process?
A process is a running instance of a program. When you open a web browser, a text editor, or a game, the operating system creates a separate process for each. Every process gets its own memory space, CPU time, and permissions.
Defining Process Isolation
Process isolation is the OS mechanism that prevents one process from reading or writing another process's memory. It ensures that a crash or exploit in one program does not automatically compromise the rest of the system.
Why Isolation Matters
Without process isolation, any program could read your passwords, modify banking data, or install malware. Isolation is the foundation of operating system security.
How the OS Enforces Isolation
Understanding Privilege Levels
Modern CPUs define privilege rings. Most systems use two: kernel mode (Ring 0) with full hardware access, and user mode (Ring 3) with restricted access. The boundary between them is enforced by the CPU itself.
What Is Privilege Escalation?
Privilege escalation occurs when an attacker exploits a vulnerability to gain higher permissions than intended. There are two types:
Isolation vs. Escalation
| Process Isolation | Privilege Escalation | |
|---|---|---|
| Purpose | Defense: keep processes apart | Attack: break boundaries |
| Direction | Maintains boundaries | Crosses boundaries |
| Actor | Operating system / hardware | Attacker / malicious code |
| Result | Contained, secure environment | Unauthorized access / control |
| Analogy | Walls between rooms | Picking the lock on a door |
What Is Patching?
A patch is a software update released by a vendor to fix a known vulnerability, bug, or security flaw. Patching is the process of applying these updates to close the gap before attackers can exploit it.
Why Patching Matters
Step-by-Step Patch Management
Example: Browser Sandboxing
Example: Escalation Attack
Case Study: WannaCry Ransomware
In May 2017, WannaCry exploited EternalBlue (CVE-2017-0144), a vulnerability in Windows SMB. Microsoft had released patch MS17-010 in March 2017, two months before the attack.
Common Mistakes
Summary: Key Concepts
| Concept | What It Does | Why It Matters |
|---|---|---|
| Process Isolation | Separates memory and permissions per process | Contains failures and exploits |
| Privilege Rings | CPU-enforced access levels (Ring 0 vs Ring 3) | Prevents user code from controlling hardware |
| Privilege Escalation | Exploits flaws to gain higher permissions | Enables full system compromise |
| Patching | Fixes known vulnerabilities in software | Closes attack windows before exploitation |
| Least Privilege | Limits accounts to minimum needed access | Reduces blast radius of any breach |
Question 1 of 5
What is the primary purpose of process isolation in an operating system?
Question 2 of 5
A regular user exploits a buffer overflow in a system service to gain root access. This is an example of:
Question 3 of 5
The WannaCry ransomware attack of 2017 could have been largely prevented if organizations had:
Question 4 of 5
Which hardware component is primarily responsible for enforcing process memory isolation?
Question 5 of 5
The principle of least privilege recommends that users and processes should: