Secure Configuration
& Hardening
Learn how to reduce attack surfaces, establish security baselines, and protect systems by removing unnecessary services and enforcing strong defaults.
What Is Secure Configuration?
Every device, server, and application ships with default settings designed for ease of use, not security. Secure configuration is the process of adjusting those settings so that only what is needed is enabled, and everything else is locked down.
What Is System Hardening?
Hardening goes a step further than basic configuration. It is the systematic process of reducing the attack surface of a system by eliminating unnecessary software, accounts, ports, and permissions.
Why Hardening Matters
The Security Baseline
A security baseline is a documented set of minimum configuration standards that every system in an organization must meet. It defines what "secure enough" looks like before a system goes live.
Principle of Least Functionality
The core rule behind all hardening: a system should provide only the capabilities required for its intended function, and nothing more. Every extra feature is a potential entry point for attackers.
Understanding the Attack Surface
The attack surface is the total number of points where an unauthorized user could try to enter or extract data from a system. Hardening shrinks this surface.
Hardening vs. Secure Configuration
These terms are closely related but have a key difference in scope and depth.
| Secure Configuration | Hardening | |
|---|---|---|
| Focus | Setting correct values | Eliminating attack vectors |
| Scope | Settings and parameters | Entire system architecture |
| Example | Changing default password | Removing unused accounts entirely |
| When | Initial setup and audits | Continuous lifecycle process |
| Analogy | Setting the alarm code | Bricking up unused doors |
How to Harden a System
Example: Hardening a Web Server
Example: Hardening a Workstation
Example: Hardening a Network Router
Key Frameworks & Standards
Beware of Configuration Drift
Configuration drift occurs when systems gradually move away from their hardened baseline over time: someone re-enables a service "temporarily," a patch introduces a new default, or a firewall rule gets added and never removed.
Common Mistakes in Hardening
Summary: Key Concepts at a Glance
| Concept | Definition | Example |
|---|---|---|
| Security Baseline | Minimum acceptable configuration standard | CIS Level 1 Benchmark |
| Hardening | Reducing attack surface systematically | Removing unused services |
| Least Functionality | Only enable what is needed | Closing ports 21, 23, 25 |
| Attack Surface | All potential entry points | Open ports, accounts, APIs |
| Configuration Drift | Gradual deviation from baseline | Re-enabled debug mode |
Question 1 of 5
What is the primary goal of system hardening?
Question 2 of 5
A company deploys a new server using factory default settings. Which of the following is the most likely security risk?
Question 3 of 5
Which of the following best describes the Principle of Least Functionality?
Question 4 of 5
Configuration drift is best described as:
Question 5 of 5
An administrator hardens a server so aggressively that the web application it hosts stops functioning. Users begin emailing files instead of using the secure portal. This scenario illustrates the danger of: