3.3 Operating System Hardening

Core Concepts: Minimize Your Exposure, Protect Your Data

Your operating system is the foundation of your computer's security. Everything else, your applications, your files, your passwords, sits on top of it. A properly configured OS blocks most attacks before they can start. A poorly configured one leaves the door wide open.

Modern operating systems have excellent security features built in. The challenge is that many of these features aren't enabled by default, or the default settings prioritize convenience over security. This section shows you how to configure your OS for better protection without making it unusable.

3.3.1. Understanding OS Security

Operating system hardening means configuring your system to be more resistant to attacks. This involves:

We'll cover Windows, macOS, and Linux. Skip to the section for your operating system, or read them all if you use multiple systems.

Maintaining Your Hardened System

OS hardening isn't a one-time task. Maintain your security:

Remember: Security is about balance. If a setting makes your computer too difficult to use, you'll disable it or work around it, defeating the purpose. Find the right balance between security and usability for your needs.

3.3.2. The Basics

Enable Automatic Updates

This is the single most important thing you can do. Unpatched vulnerabilities are responsible for roughly half of all data breaches. Software vendors release updates to fix security holes; if you don't install them, you're leaving known vulnerabilities exposed.

Windows:

Mac:

Linux:

Use an Antivirus

Modern operating systems come with built-in antivirus that's quite good. Make sure it's enabled and updating. 

Part of a defense in depth strategy.

Windows Defender:

There is some debate as to whether these are necessary for Mac and Linux. While Unix-based and Linux operating systems are generally more secure (Mac is Unix-based), they are not immune to viruses. There is also a rise in development of malware for Linux-based operating systems as their use becomes more common. Also, there is more to malware than just viruses, and most modern antivirus solutions are able to detect and block access to websites known to be infected, monitor system processes for evidence of ransomware, and detect malicious web traffic. Make a risk-based decision for yourself: Is the risk of dealing with leaked personal information and ransomware worth the tiny amount of system resources protection requires? Personally, I recommend Sophos as part of a defense-in-depth strategy.

Mac XProtect:

Linux:

Enable Built-In Firewall

A firewall blocks unauthorized network connections to and from your computer. Every modern OS has one built in, make sure it's on.

Windows:

Mac:

Linux:

Enable Full-Disk Encryption

Encryption scrambles your entire drive so no one can access your files without your password. If your laptop is stolen, your data is protected. This is especially important for laptops and any computer with sensitive information.

Important: Back up your data before enabling encryption. While rare, problems during encryption can result in data loss.

Windows (BitLocker - Windows Pro or higher):

Note: Windows Home edition doesn't include BitLocker. Consider upgrading to Pro or using VeraCrypt (free, open-source alternative).

Mac (FileVault):

Linux (LUKS):

Create Separate Accounts for Each Person

Never share user accounts. Each person should have their own account to provide security and privacy for everyone.

On computers:

Windows:

Mac:

Lock Your Screen When Not In Use

Your screen should lock when you step away. This prevents someone from accessing your computer if you forget to lock it manually. On Windows use windows key + L; on Mac use command + control + Q; on Linux, use windows key + L (dependent on keyboard).

You should also set your screen to automatically lock in case you step away and forget.

Windows:

Mac:

Linux (Ubuntu):

Disable AutoPlay/AutoRun

When you connect a USB drive or CD, your computer can automatically run files. This is dangerous as malware often spreads via USB drives. Turn off AutoPlay.

Windows:

Mac:

Linux:

3.3.3. Better Protection

Review and Minimize Privacy Settings

Modern operating systems collect data about how you use your computer. Some of this is for diagnostics, some for targeted advertising. Review these settings and turn off what you don't need.

Windows:

Mac:

Linux:

Configure User Account Control (Windows)

User Account Control (UAC) prompts you when programs try to make system changes. Make sure it is configured it to always notify you.

Disable Unnecessary Services (Windows)

Windows runs many background services. Some are necessary, others aren't. Disabling unused services reduces attack surface.

Safe services to disable for most users:

How to disable:

Warning: Only disable services you understand. When in doubt, leave it alone.

Disable Legacy Network Protocols (Windows)

Windows keeps old networking features for compatibility. You probably don't need them, and they're security risks.

Review Startup Programs

Programs that start automatically when you boot slow down your computer and can be security risks. Review and disable unnecessary startup items.

Windows:

Mac:

Linux:

3.3.4 Extra Credit

Create a Guest Account

If friends or family need to use your computer, create a guest account with limited access. This protects your files and prevents accidental system changes.

Windows:

Mac:

Enable Secure Boot (Windows/Linux)

Secure Boot prevents unauthorized operating systems and bootloaders from starting. It protects against bootkits and rootkits that load before Windows.

Note: Some Linux distributions and dual-boot setups may have compatibility issues with Secure Boot. Verify that your distribution and hardware are compatible with secure boot before enabling.

Encrypt External Drives

If you store sensitive data on external drives or USB sticks, encrypt them too.

Windows (BitLocker To Go):

Mac:

Linux:

Disable SMBv1 Protocol (Windows)

SMBv1 is an old file sharing protocol with known security vulnerabilities (like WannaCry ransomware). Disable it unless you need to connect to very old network devices.


Revision #1
Created 2026-07-12 21:35:18 UTC by Chris Landis
Updated 2026-07-12 21:37:30 UTC by Chris Landis