Security Hardening
Also known as: Hardening, System hardening
Process of reducing a system's vulnerability by removing unnecessary functions, tightening configuration and applying secure defaults and updates.
Security hardening is the work of making a system more resistant to attack by reducing its attack surface and correcting insecure settings. It applies to operating systems, servers, network devices, databases, applications, containers and cloud accounts. Typical steps include removing unused software and services, disabling default accounts and passwords, closing unneeded ports, enforcing strong authentication, restricting permissions, enabling logging and encryption and keeping everything patched. The aim is to move from a vendor's general-purpose defaults to a configuration that fits a specific, limited purpose.
Organizations rarely start from scratch. The Center for Internet Security publishes consensus-based CIS Benchmarks for more than a hundred products, the US Defense Information Systems Agency maintains Security Technical Implementation Guides (STIGs) and vendors issue their own baselines. Configuration management and infrastructure as code tools apply hardened settings consistently and detect drift when systems change. Some projects make hardening a central goal: OpenBSD emphasizes secure defaults and code auditing, while GrapheneOS adds exploit mitigations and privacy protections to Android.
Hardening embodies the principle of least privilege and is one of the most cost-effective security measures, since many breaches exploit default credentials, exposed management interfaces or unnecessary features rather than novel techniques. It requires balance: overly aggressive settings can break applications or push users toward workarounds, so changes should be tested and documented. Hardening is not a one-time task, because updates, added software and configuration drift gradually undo it. For individuals, automatic updates, a screen lock, disk encryption and minimal app permissions form a practical baseline.
Key points
- Hardening removes unneeded functions and tightens settings to shrink a system's attack surface.
- CIS Benchmarks and DISA STIGs are widely used hardening baselines.
- Configuration management tools apply hardened settings consistently and detect drift.
- Hardening must be maintained over time, since updates and changes gradually undo it.
Related entries
Attack Surface
The total set of points where an unauthorized party could try to enter, extract data from or otherwise attack a system, network or organization.
Principle of Least Privilege
Security principle that every user, program and process should have only the minimum access rights needed to perform its legitimate function.
Patch Management
The process of identifying, testing, prioritizing and deploying software updates across systems to fix vulnerabilities and bugs in a controlled way.
Configuration Management
Discipline and tooling for establishing and maintaining a known, consistent state for systems, software and their settings over time.
OpenBSD
Free Unix-like operating system derived from BSD that prioritizes security, code correctness and proactive auditing, and that created OpenSSH.
GrapheneOS
Security- and privacy-hardened mobile operating system based on the Android Open Source Project and supported on Google Pixel phones.
Secure Boot
Firmware feature that lets a computer start only bootloaders and system software signed with trusted keys, protecting against boot-level malware.
DevSecOps
Extension of DevOps that integrates security practices and automated security testing throughout the software development and delivery life cycle.
Featured in guides
Referenced by
Other entries that discuss or point to Security Hardening.