01 / 20

Process Isolation
& Patching

Understand how operating systems isolate processes, what happens during privilege escalation, and why timely patching is a critical defense.

Cyber Security

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.

Memory Boundaries
Each process is assigned a virtual address space that maps to unique physical memory pages.
Permission Levels
The CPU enforces rings (Ring 0 for kernel, Ring 3 for user) so user code cannot execute kernel instructions.
Fault Containment
If Process A crashes, Process B continues running unaffected because their memory spaces never overlap.

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.

1
Confidentiality: Sensitive data in one process stays hidden from others.
2
Integrity: A compromised browser tab cannot alter your OS kernel.
3
Availability: One application crashing does not bring down the entire system.

How the OS Enforces Isolation

Kernel (Ring 0) Memory Management Unit Process A Virtual Memory 0x00 User Permissions Process B Virtual Memory 0x00 User Permissions ✕ Blocked The MMU translates virtual addresses so processes never share physical pages

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.

Ring 3: User Mode Device Drivers Ring 0 Kernel Browser Editor Game

What Is Privilege Escalation?

Privilege escalation occurs when an attacker exploits a vulnerability to gain higher permissions than intended. There are two types:

Vertical
A normal user gains administrator or root access: jumping from Ring 3 to Ring 0 privileges.
Horizontal
A user accesses another user's data at the same privilege level: reading someone else's files without elevated permissions.

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.

Vulnerability Discovered flaw Patch Vendor fix Secure Flaw closed Vulnerability → Patch Released → Applied → Secure

Why Patching Matters

1
Zero-day window: Once a vulnerability is public, attackers race to exploit it. Patches close this window.
2
Attack surface reduction: Each unpatched flaw is an open door. Patching reduces the number of entry points.
3
Compliance: Regulations (HIPAA, PCI-DSS, GDPR) require timely patching as part of due diligence.
4
Real-world impact: The 2017 WannaCry ransomware infected 200,000+ machines: a patch had been available for two months prior.

Step-by-Step Patch Management

1
Inventory: Catalog all software, OS versions, and hardware in your environment.
2
Monitor: Subscribe to vendor security advisories and CVE databases.
3
Prioritize: Rank patches by severity (CVSS score), exploitability, and asset criticality.
4
Test: Apply patches in a staging environment first to check for compatibility issues.
5
Deploy: Roll out patches to production, starting with the most critical systems.
6
Verify: Confirm patches are applied and no new issues were introduced.

Example: Browser Sandboxing

Chrome Browser Tab 1 bank.com PID: 4012 Tab 2 malicious.com PID: 4013 Tab 3 docs.google.com PID: 4014 ✕ ✕ Operating System: Process Isolation Layer Each tab runs as a separate process with its own memory space

Example: Escalation Attack

User Mode Ring 3: Limited Exploit Vuln Buffer overflow Root / Admin Ring 0: Full control 1. Find flaw 2. Escalate Patch blocks this path

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.

1
Vulnerability: A flaw in the SMBv1 protocol allowed remote code execution without authentication.
2
Patch available: MS17-010 was released March 14, 2017, fixing the SMB vulnerability.
3
Attack window: Organizations that delayed patching were infected when WannaCry launched May 12, 2017.
4
Lesson: Timely patching would have prevented 200,000+ infections across 150 countries.

Common Mistakes

✕ Delaying Patches
Postponing updates because they "might break things" leaves known vulnerabilities open for weeks or months.
✕ Running as Admin
Using administrator accounts for daily tasks removes the isolation barrier: any exploit gains full system access immediately.
✕ Ignoring Legacy Systems
Assuming old systems are "too unimportant to patch." WannaCry hit outdated Windows XP machines hardest.

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: