VULNAREX
SYSTEM ONLINE

🛡️ Training Arenas

Labs
Interactive exploit and defense labs
Courses
Structured learning tracks and missions
Sandbox
Live browser and terminal hacking arena
Whiteboard
Attack planning and vector sketches
Practice
Hands-on code and vulnerability exercises
Tools
Mini utilities for crypto, encoding, and analysis

📖 Knowledge Vaults

Articles
Deep-dive security investigations
Blogs
Cyber threat news and analysis
Cheatsheets
Quick reference payloads and commands
Docs
Platform docs, guides, and protocols
Vulnerabilities
Latest CVEs, advisories, and KEV details

💼 Career Prep

Exams
Certification and challenge prep
Interview Questions
Common questions and answer walkthroughs
Dashboard
XP, progress, and live rank telemetry
Learning Paths
Guided role-based learning roadmaps
Services
Consulting, training, and expert reviews
Contact
Get in touch with VulnarEx Lab ops
About
Login
Script Kiddie
Lv1 · 0xp
Intel Dispatch · Subscribe

Get Exploit Alerts & New Release Drops

Advanced exploit dissections, CVE breakdowns, and new lab drops — straight to your inbox. Unsubscribe anytime.

VULNAREX

A gamified offensive-security sandbox for developers, sysadmins, and researchers — from baseline hardening to kernel-level exploits.

Core Instance · Active & Stable
Telegram WhatsApp Facebook X / Twitter YouTube
Training
  • Labs
  • Courses
  • Sandbox
  • Practice
  • Whiteboard
  • Tools
Knowledge
  • Articles
  • Blogs
  • Cheatsheets
  • Docs
  • Vulnerabilities
Career
  • Exams
  • Interview Prep
  • Dashboard
  • Learning Paths
  • Services
  • Contact
Cluster Nodes
Active Nodes99.98% SLA
London · UK
24ms
Berlin · DE
18ms
Virginia · US
42ms
Tokyo · JP
95ms
30-day uptime99.98%

© 2026 VULNAREX SECURE LABS · ALL RECON FLAGS PROTECTED

Privacy·Terms·Disclaimer· TLS 1.3·Built with
Curriculum lobby
0s75 min Loop75 min★ 120 XP
Syllabus

Operating System Security

Operating System Security FundamentalsCommon OS Security Concepts (Trusted Computing Base, Security Kernel)OS Attack Surface Overview (Services, Ports, Processes, Registry/FS)Secure Installation & Baseline Configuration
User Account & Privilege ManagementPrinciple of Least Privilege (PoLP) in PracticeWindows User Accounts (Administrator vs. Standard User, UAC)Linux User Accounts (root vs. Regular User, sudo Mechanics)macOS User Accounts (Admin vs. Standard, Privacy Preferences)Group Policies & Role-Based Access Control (RBAC)
File System Permissions & Access ControlWindows NTFS Permissions (Full Control, Modify, Read & Execute)Linux/macOS POSIX Permissions (chmod, chown, umask, SUID/SGID/Sticky Bit)Access Control Lists (ACLs) – Windows icacls & Linux setfacl/getfaclShared Folder & Network Drive SecurityFile Integrity Monitoring (AIDE, Tripwire, Windows SFC)
Windows HardeningLocal Security Policy & Security Configuration WizardWindows Defender Firewall & Advanced Security RulesBitLocker Drive Encryption & TPM UsageDisabling Unnecessary Services (Print Spooler, SMBv1, RDP lockdown)Windows 10/11 Security Baselines & Microsoft Defender for EndpointWindows Registry Hardening (LSA, UAC, AutoRun)
Linux HardeningSecuring GRUB Bootloader & Single-User ModeSSH Hardening (Disable root login, key-only auth, fail2ban)AppArmor & SELinux (Enforcing/Targeted/Disabled modes)Unnecessary Package Removal & Service Disabling (systemd)iptables/nftables & TCP Wrappers/etc/security/limits.conf & PAM Configuration
macOS HardeningSystem Integrity Protection (SIP) & GatekeeperFileVault Full-Disk Encryption & Firmware PasswordmacOS Built-in Firewall & Application Firewall (pf)Privacy Settings (Camera, Microphone, Location, Accessibility)MDM Configuration Profiles & Security ConfiguratorXProtect, MRT, & Notarization
Patch Management & Update LifecycleVulnerability Lifecycle & Zero-Day RiskWindows Update (WSUS, Windows Update for Business)Linux Patch Management (apt, yum/dnf, zypper, unattended-upgrades)macOS Software Update & Nudge FrameworkThird-Party Patching (Chocolatey, Patch My PC, Munki)Testing Patches & Rollback Strategies
OS Hardening Automation & ComplianceCIS Benchmarks & DISA STIGs OverviewAutomated Hardening Scripts (PowerShell DSC, Ansible, Bash)OpenSCAP, Lynis, & Osquery for Compliance ScanningContinuous Hardening with Infrastructure as Code (IaC)
Real-World OS Attacks & DefensesWindows Privilege Escalation (Potato Attacks, PrintNightmare)Linux Privilege Escalation (Sudo Bypass, SUID Binaries, Dirty Pipe)macOS TCC Database Bypass & Persistence TechniquesDefensive Logging & Monitoring (Sysmon, Auditd, Unified Logging)
Capstone LabHarden a Windows 10 VM Against CIS Level 1Harden an Ubuntu 22.04 Server Using Lynis & SELinuxPatch Management Simulation (Identifying & Deploying Critical Patches)Post-Hardening Vulnerability Scan (Nessus/OpenVAS Comparison)
operating-system-security / common-os-security-concepts

Common OS Security Concepts (Trusted Computing Base, Security Kernel)

#Why a Compromised Kernel Means Game Over#link

In 2023, a banking trojan modified the Windows kernel to hide its presence, evading antivirus and EDR for months. The breach cost millions because the security team didn't understand the Trusted Computing Base. This lesson dissects the core concepts that define whether an OS can actually enforce security: the TCB, security kernel, reference monitor, and protection rings. Without mastering these, no hardening measure will hold.

The Trusted Computing Base (TCB) and Why Size Matters

The TCB is the set of all hardware, firmware, and software components whose correct functioning is critical to security. A larger TCB introduces more attack surface. In modern OSes, the TCB includes the kernel, device drivers, and core system services. Linux's monolithic kernel puts the entire core in the TCB, while microkernel designs like seL4 minimize it. Every hardening decision should shrink the effective TCB—remove unused kernel modules, disable unnecessary services, and enforce strict driver signing.

info

💡 A practical way to think about TCB: If any component inside the TCB is compromised, the entire security model collapses. That's why we focus on kernel integrity, secure boot, and driver signing.

bash
# Check loaded kernel modules (Linux) — each module extends the TCB
lsmod | wc -l  # Count current modules
# Disable unnecessary module permanently
echo 'blacklist pcspkr' | sudo tee /etc/modprobe.d/nobeep.conf
sudo update-initramfs -u

The output shows how many modules are loaded. On a typical Ubuntu desktop, you may see 80+. Every module that you don't absolutely need widens the attack surface. After blacklisting and rebuilding the initramfs, that module can't be loaded even by accident. In a production server, aim for a lean kernel config with only required drivers.

The Security Kernel & Reference Monitor Guarantees

The security kernel is the subset of the TCB that implements the reference monitor concept—a tamperproof, always-invoked, and verifiable mechanism that enforces access control. It must satisfy three properties: completeness (every access is mediated), isolation (it cannot be tampered with), and verifiability (its correctness can be proven). In practice, Windows enforces this through the kernel-mode security subsystem (SeAccessCheck), while SELinux implements a Mandatory Access Control monitor that can't be bypassed even by root.

callout

Key insight: A reference monitor is not a specific piece of code; it's an architectural enforcement point. Any bypass of the reference monitor—like a kernel exploit that writes directly to memory—breaks the security model entirely.

Verifying SELinux enforcement mode
root@vulnarex:~#getenforce && sestatus | grep -E 'SELinux status|Current mode|Mode from config file'

This confirms that SELinux is in enforcing mode, meaning the reference monitor actively denies operations that violate policy. In permissive mode, violations are only logged—a dangerous misconfiguration. Ensuring the security kernel is active and non-bypassable is the foundation of all hardening.

ConceptDefinitionCompromise Impact
TCBAll trusted componentsTotal system compromise
Security KernelCore that implements reference monitorLoss of access control enforcement
Reference MonitorMediation abstractionArbitrary access, policy bypass
Protection RingsHardware privilege levels (ring 0-3)Kernel-mode arbitrary execution

Protection Rings and the Kernel-User Boundary

x86/ARM CPUs enforce privilege separation through protection rings. Kernel runs in ring 0, drivers in ring 1/2, and user applications in ring 3. Modern OSes mainly use ring 0 and ring 3. A successful privilege escalation attack crosses this boundary—from user-mode to kernel-mode—giving the attacker complete control. Defenses like Supervisor Mode Execution Prevention (SMEP) and Kernel Address Space Layout Randomization (KASLR) raise the bar. Hardening the boundary means enabling hardware protections and applying strict code-signing policies.

STRICT SECURE AUDIT RULE

⚠️ Without SMEP, a kernel exploit can execute attacker-controlled code in ring 0. Always ensure your OS has SMEP/SMAP enabled (check /proc/cpuinfo flags on Linux, or Core isolation on Windows).

  • ▪Audit your TCB: list all kernel modules, drivers, and services running with high privileges.
  • ▪Enable and enforce Secure Boot + TPM-based measured boot to protect early boot chain.
  • ▪Verify reference monitor integrity: SELinux/AppArmor in enforcing, Windows VBS/HVCI.
  • ▪Minimize ring 0 code: remove unnecessary drivers and kernel extensions.
quiz BLOCK (★ 50 XP)

An attacker exploits a vulnerable driver to execute code in kernel mode. Which security property of the reference monitor is violated?

Select your proof vectors above
challenge BLOCK (★ 100 XP)

TCB Analysis Challenge

Select your proof vectors above

Verification Proof Checkpoint

Verify exercises to earn ★ 120 XP and unlock next lab level.

Workspace
Lab Notes

✓ Auto-persisted per lesson. Export as Markdown.

Checkpoints
Why a Compromised Kernel Means Game Over
Laboratory Sanity Code

Isolate active probes on matched virtual networks. Keep execution streams fully sandboxed.