The Complete Guide to System Hardening: Checklist and Best Practices
This article is a comprehensive system hardening guide covering user access controls, network configuration, firewall setup, patch management, OS-specific hardening for Windows and Linux, service/application configuration, logging, and physical security. It emphasizes that hardening is an ongoing process rather than a one-time task and recommends aligning to established frameworks like CIS Benchmarks, NIST guidelines, and DISA STIGs. The guide also covers common pitfalls such as undocumented exceptions, skipping asset inventories, and disabling logging for performance.
Detection / Hunteropenrouter
What Happened
This article explains how to make computers and servers harder for hackers to break into by changing their default settings. Default settings are designed for ease of use, not security, which means they often leave doors open that attackers can exploit. The guide covers practical steps like turning off unused features, requiring strong passwords and multi-factor authentication, restricting remote access, keeping software updated, and monitoring system logs. It applies to Windows and Linux systems, cloud platforms, databases, and network equipment. This matters because misconfigurations are one of the most common causes of data breaches, and following these steps significantly reduces risk. Organizations should adopt a recognized framework like CIS Benchmarks as their starting point, treat hardening as an ongoing process, and regularly audit their systems to catch configuration drift.
Key Takeaways
- System hardening reduces attack surface by changing configurations—disabling unused services, closing ports, enforcing least privilege, and removing default credentials—complementing but not replacing patch management.
- Key Windows hardening steps include disabling SMBv1, LLMNR, PowerShell v2, and NetBIOS over TCP/IP; enabling BitLocker, Credential Guard, and UAC; restricting RDP; and configuring AppLocker or WDAC.
- Key Linux hardening steps include disabling root SSH login, enforcing key-based authentication, enabling SELinux or AppArmor in enforcing mode, configuring auditd, and setting GRUB bootloader passwords.
- Hardening should be a repeatable process, not a one-time checklist: maintain asset inventory, define baseline configurations, apply hardening before deployment, audit quarterly, and document all exceptions.
- Established frameworks (CIS Benchmarks, NIST SP 800-53, DISA STIGs) provide tested baselines and are widely accepted by auditors for HIPAA, PCI DSS, and CMMC compliance.
Affected Systems
- Windows desktop and server operating systems
- Linux server operating systems
- Network devices and firewalls
- Cloud platforms (AWS, Azure, Google Cloud)
- Database servers
- Web servers (IIS, Apache, Nginx)
- Portable devices (laptops, removable media)
Vulnerabilities (CVEs)
None identified.
Attack Chain
- Baseline Assessment: Inventory all assets and assess current configurations against a chosen framework (CIS Benchmarks, NIST, DISA STIGs)
- Access Control Hardening: Disable default accounts, enforce password policies, enable MFA, and apply least privilege across users and service accounts
- Network and OS Hardening: Close unused ports, disable insecure protocols (SMBv1, Telnet, FTP, TLS 1.0/1.1), enable host-based firewalls with default-deny rules, and segment networks
- Application and Service Hardening: Remove unused services, run services under low-privilege accounts, strip default files and debug settings, and configure application whitelisting
- Logging and Monitoring: Enable audit logging for authentication and privilege escalation events, centralize logs in a SIEM, configure alerts, and sync NTP
- Continuous Maintenance: Audit quarterly, document exceptions, apply hardening to new systems before deployment, and test changes in staging
Detection Availability
- YARA Rules: No
- Sigma Rules: No
- Snort/Suricata Rules: No
- KQL Queries: No
- Splunk SPL Queries: No
- EQL Queries: No
- Other Detection Logic: No
No detection rules are provided in this article. It is a hardening best-practices guide, not a threat analysis report.
Detection Engineering Assessment
| Dimension | Rating | Rationale |
|---|---|---|
| EDR Visibility | Medium | The article recommends EDR as a complement to hardening but does not describe specific EDR telemetry or detection scenarios. Hardening itself reduces attack surface but does not generate detection telemetry. |
| Network Visibility | Medium | The article recommends logging all inbound and outbound traffic and reviewing firewall rule matches, but does not describe specific network detection use cases or indicators to hunt for. |
| Detection Difficulty | Moderate | The article describes logging and monitoring configurations that are straightforward to implement, but the actual detection of configuration drift and unauthorized changes requires ongoing automated assessment tools and regular audits. |
Required Log Sources
- Windows Security Event Logs (authentication success/failure, account creation, privilege escalation)
- Linux auditd logs (privileged command execution, file access changes, authentication events)
- Firewall logs (denied connections, rule matches)
- SIEM centralized log aggregation
- NTP synchronization across all systems
Hunting Hypotheses
| Hypothesis | Telemetry | ATT&CK Stage | FP Risk |
|---|---|---|---|
| Consider hunting for systems where the built-in Administrator account is still enabled or has recent login activity, as this is a common target for attackers using valid credentials. | Windows Security Event Log IDs 4624, 4625, and account management events | Initial Access / Persistence | Low — legitimate administrative use of built-in accounts is uncommon in well-hardened environments |
| Consider hunting for RDP sessions originating from non-management VLAN IP ranges or external IPs, as unrestricted RDP is a common entry point. | Windows Security Event Log ID 4624 (Logon Type 10), network firewall logs | Initial Access / Lateral Movement | Medium — legitimate remote workers or vendor access may trigger alerts if not properly documented |
| Consider hunting for new services installed outside of change windows or running under SYSTEM/root context, which may indicate persistence or privilege escalation. | Windows System Event Log ID 7045, Linux systemd/journal logs, EDR process telemetry | Persistence / Privilege Escalation | Medium — legitimate software installations and updates may trigger alerts |
| Consider hunting for SMBv1 or LLMNR traffic on the network, as these legacy protocols should be disabled in hardened environments and their presence may indicate configuration drift or attacker activity. | Network flow data, DNS logs for LLMNR (port 5355), SMB traffic analysis | Discovery / Lateral Movement | Low — these protocols should not appear in properly hardened environments |
| Consider hunting for authentication events from systems that have been identified as end-of-life or unmanaged, as these systems may bypass hardening baselines. | Asset inventory cross-referenced with authentication logs in SIEM | Initial Access / Lateral Movement | Low — if asset inventory is current, alerts should be actionable |
Control Gaps
- Configuration drift detection — hardening baselines erode over time without automated continuous assessment
- Shadow IT visibility — unmanaged devices may not receive hardening configurations
- Third-party application hardening — OS-level controls do not address misconfigurations in applications running on top of the OS
- Undocumented exceptions — manual deviations from baseline become invisible risks without centralized tracking
Key Behavioral Indicators
- Built-in Administrator account enabled or actively used on Windows systems
- RDP sessions from non-management IP ranges
- SMBv1 or LLMNR protocol traffic on the network
- New services installed outside of documented change windows
- Services running under SYSTEM or root context unnecessarily
- Authentication events from end-of-life or unmanaged systems
- Direct root SSH login on Linux systems (should require sudo escalation)
- USB storage devices mounted on systems where removable media is restricted
False Positive Assessment
Low — this is a defensive hardening guide with no detection rules or IOCs that could generate false positives. The hunting hypotheses described carry their own false positive risks as noted individually.
Recommendations
Immediate Mitigation
- Verify against your organization's incident response runbook and team escalation paths before acting. Consider conducting a configuration assessment against CIS Benchmarks for your most critical systems (domain controllers, servers with sensitive data) to identify the highest-risk gaps.
- Consider disabling SMBv1, LLMNR, and PowerShell v2 on all Windows systems immediately, as these are commonly exploited legacy components with minimal business impact when removed.
- If your environment supports it, consider enabling Credential Guard on Windows systems with compatible hardware to protect against credential theft attacks.
- Consider restricting RDP access to specific management VLANs or IP ranges and disabling it entirely on systems that do not require remote desktop access.
Infrastructure Hardening
- Consider implementing default-deny firewall rules on both perimeter and host-based firewalls, explicitly allowing only required traffic.
- Evaluate whether network segmentation can be improved to isolate servers from workstations and separate OT/IoT devices from corporate networks.
- Consider disabling insecure protocols (Telnet, FTP, SNMPv1/v2, TLS 1.0/1.1) and replacing them with encrypted alternatives.
- If applicable to your environment, consider enabling SELinux or AppArmor in enforcing mode on Linux systems and configuring auditd for privileged command logging.
- Consider implementing centralized log management with defined retention policies (90 days to one year) and alerting for high-priority events.
User Protection
- Consider enforcing MFA for all privileged accounts and remote access if not already in place.
- Evaluate whether password policies meet the recommended 12-16 character minimum with complexity requirements.
- Consider enabling BitLocker full-disk encryption on all laptops and portable devices.
- If supported by your endpoint tooling, consider disabling autorun and autoplay for removable media.
Security Awareness
- Consider rolling hardening exception documentation into existing change management processes so that deviations are tracked and reviewed.
- If applicable to your team structure, consider establishing quarterly hardening audits as a recurring task with assigned ownership.
- Consider training IT staff on the distinction between patching and hardening, and the importance of maintaining both as separate but complementary processes.