PLANCKDefense & AerospaceContact

Resilient Systems

Hardening a Linux system: what to do first and how to prove it

A published baseline says which settings to change. The order of work, the recorded deviations, and the evidence kept decide whether a reviewer can trust the result.

Decide what the system is for, then remove the rest

Hardening starts before any setting changes. NIST SP 800-53 control CM-7, least functionality, asks you to configure a system to provide only mission-essential capabilities and to prohibit or restrict the functions, ports, protocols, software, and services it does not need. Write that list first. A package you remove is one you never have to configure, patch, or defend.

When NSA and CISA summarized what their red and blue teams find most often, default configurations of software and applications were among the ten most common network misconfigurations. So was improper separation of user and administrator privilege. Many of those assessments covered Windows environments, but the advisory tells operators of other software to check for the same problems. Its mitigation is to modify default configurations before deployment to production, using hardening guidance such as DISA's Security Technical Implementation Guides (STIGs).

Pick a published baseline and settle install-time decisions

Control CM-6 calls for configuration settings that reflect "the most restrictive mode consistent with operational requirements," based on common secure configurations. It names STIGs as an example. A STIG is product-specific. It implements requirements from a broader Security Requirements Guide (SRG). The Red Hat Enterprise Linux (RHEL) 9 STIG, used as the example here, was developed from the General Purpose Operating System SRG.

Read the baseline before you install anything, because some requirements are hard to retrofit. In Version 2, Release 10 of the RHEL 9 STIG (dated September 30, 2026), the FIPS mode rule says a failed check on an installed system is a permanent finding until the system is reinstalled with FIPS enabled during installation. The disk encryption rule notes that encrypting a partition on an installed system is more difficult. The STIG also requires separate file systems for paths such as /tmp and /var/log, which is a partition layout decision.

Work by severity, test first, record every deviation

DISA gives each rule a severity category. Category I covers any vulnerability whose exploitation will directly and immediately result in loss of confidentiality, availability, or integrity. That RHEL 9 release has 445 rules, and 29 are Category I. They include running a vendor-supported release, enabling FIPS mode, setting SELinux to enforcing, and refusing blank passwords. Fix those first.

Apply settings in a representative test environment before production. DISA warns that failure to test may lead to a loss of required functionality. When a setting breaks something the mission needs, do not skip it silently. CM-6 requires that deviations be identified, documented, and approved. DISA adds that the risk of not applying a setting must be approved by the responsible authorizing official. An unrecorded exception looks the same as a missed step.

Prove it with evidence someone else can rerun

NIST describes a security configuration checklist as content used to configure a product, verify that configuration, identify unauthorized changes, or produce artifacts that show its security posture. For STIGs, much of that evidence comes through the Security Content Automation Protocol (SCAP), a suite of specifications for expressing and exchanging security configuration information in machine-readable form. DISA publishes a SCAP benchmark for the RHEL 9 STIG. Automation does not cover everything. For that release, the SCAP 1.3 benchmark checks 393 of the 445 rules. The rest need manual review with recorded results.

A clean scan shows that settings are in place. It does not show that the system resists attack. DISA states that applying every specified configuration implies no warranty that a system is 100 percent secure. NIST SP 800-160 Volume 1 describes a trustworthy system as one that provides compelling evidence to support claims that it meets its requirements. So test the hardened build the way an adversary would, starting with the misconfigurations NSA and CISA report most often.

CM-6 also requires monitoring and controlling changes to configuration settings, and DISA revises its guides on a maintenance release schedule, so rescan after every change. At Planck Defense and Aerospace, we pair baseline hardening with attack testing of the hardened build.

Key points

  • Define what the system must do and remove everything else before applying a baseline.
  • Read the baseline before installation. The RHEL 9 STIG treats a system installed without FIPS mode as a permanent finding until reinstalled.
  • Keep rerunnable evidence: benchmark scans, manual check records, approved deviations, and attack test findings.

Sources

  1. NIST SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, National Institute of Standards and Technology
  2. NSA and CISA Red and Blue Teams Share Top Ten Cybersecurity Misconfigurations (AA23-278A), National Security Agency and Cybersecurity and Infrastructure Security Agency
  3. Security Technical Implementation Guides (STIGs), Defense Information Systems Agency, Cyber Exchange
  4. Red Hat Enterprise Linux 9 STIG, National Checklist Program entry (checklist 1072), National Institute of Standards and Technology, with content authored by the Defense Information Systems Agency
  5. NIST SP 800-70 Rev. 5, National Checklist Program for IT Products: Guidelines for Checklist Users and Developers, National Institute of Standards and Technology
  6. Security Content Automation Protocol (SCAP) project page, National Institute of Standards and Technology
  7. NIST SP 800-160 Vol. 1 Rev. 1, Engineering Trustworthy Secure Systems, National Institute of Standards and Technology

Government publications are cited for information only. Citing them does not imply endorsement by any agency.

Ready to work with us?

From research and rapid prototypes to operational delivery, our team takes on hard problems across cyber, on-premises AI, and secure systems.