Guide to the Secure Configuration of AlmaLinux OS 9
with profile Standard System Security Profile for AlmaLinux OS 9This profile contains rules to ensure standard security baseline of an AlmaLinux OS 9 system. Regardless of your system's workload all of these checks should pass.
The SCAP Security Guide Project
https://www.open-scap.org/security-policies/scap-security-guide
https://www.open-scap.org/security-policies/scap-security-guide
This guide presents a catalog of security-relevant
configuration settings for AlmaLinux OS 9. It is a rendering of
content structured in the eXtensible Configuration Checklist Description Format (XCCDF)
in order to support security automation. The SCAP content is
is available in the
Providing system administrators with such guidance informs them how to securely configure systems under their control in a variety of network roles. Policy makers and baseline creators can use this catalog of settings, with its associated references to higher-level security control catalogs, in order to assist them in security baseline creation. This guide is a catalog, not a checklist, and satisfaction of every item is not likely to be possible or sensible in many operational scenarios. However, the XCCDF format enables granular selection and adjustment of settings, and their association with OVAL and OCIL content provides an automated checking capability. Transformations of this document, and its associated automated checking content, are capable of providing baselines that meet a diverse set of policy objectives. Some example XCCDF Profiles, which are selections of items that form checklists and can be used as baselines, are available with this guide. They can be processed, in an automated fashion, with tools that support the Security Content Automation Protocol (SCAP). The DISA STIG, which provides required settings for US Department of Defense systems, is one example of a baseline created from this guidance.
scap-security-guide package which is developed at
https://www.open-scap.org/security-policies/scap-security-guide.
Providing system administrators with such guidance informs them how to securely configure systems under their control in a variety of network roles. Policy makers and baseline creators can use this catalog of settings, with its associated references to higher-level security control catalogs, in order to assist them in security baseline creation. This guide is a catalog, not a checklist, and satisfaction of every item is not likely to be possible or sensible in many operational scenarios. However, the XCCDF format enables granular selection and adjustment of settings, and their association with OVAL and OCIL content provides an automated checking capability. Transformations of this document, and its associated automated checking content, are capable of providing baselines that meet a diverse set of policy objectives. Some example XCCDF Profiles, which are selections of items that form checklists and can be used as baselines, are available with this guide. They can be processed, in an automated fashion, with tools that support the Security Content Automation Protocol (SCAP). The DISA STIG, which provides required settings for US Department of Defense systems, is one example of a baseline created from this guidance.
Do not attempt to implement any of the settings in
this guide without first testing them in a non-operational environment. The
creators of this guidance assume no responsibility whatsoever for its use by
other parties, and makes no guarantees, expressed or implied, about its
quality, reliability, or any other characteristic.
Profile Information
| Profile Title | Standard System Security Profile for AlmaLinux OS 9 |
|---|---|
| Profile ID | xccdf_org.ssgproject.content_profile_standard |
CPE Platforms
- cpe:/o:almalinux:almalinux:9
Revision History
Current version: 0.1.83
- draft (as of 2026-10-27)
Table of Contents
Checklist
| Group Guide to the Secure Configuration of AlmaLinux OS 9 Group contains 9 groups and 6 rules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group System Settings Group contains 5 groups and 5 rules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
Contains rules that check correct system settings. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Installing and Maintaining Software Group contains 4 groups and 5 rules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
The following sections contain information on
security-relevant choices during the initial operating system
installation process and the setup of software
updates. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group System and Software Integrity Group contains 2 groups and 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
System and software integrity can be gained by installing antivirus, increasing
system encryption strength with FIPS, verifying installed software, enabling SELinux,
installing an Intrusion Prevention System, etc. However, installing or enabling integrity
checking tools cannot prevent intrusions, but they can detect that an intrusion
may have occurred. Requirements for integrity checking may be highly dependent on
the environment in which the system will be used. Snapshot-based approaches such
as AIDE may induce considerable overhead in the presence of frequent software updates. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Software Integrity Checking Group contains 1 group and 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
Both the AIDE (Advanced Intrusion Detection Environment)
software and the RPM package management system provide
mechanisms for verifying the integrity of installed software.
AIDE uses snapshots of file metadata (such as hashes) and compares these
to current system files in order to detect changes.
The RPM package management system can conduct integrity checks by comparing information in its metadata database with files installed on the system. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Verify Integrity with RPM Group contains 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
The RPM package management system includes the ability
to verify the integrity of installed packages by comparing the
installed files with information about the files taken from the
package metadata stored in the RPM database. Although an attacker
could corrupt the RPM database (analogous to attacking the AIDE
database as described above), this check can still reveal
modification of important files. To list which files on the system differ from what is expected by the RPM database:
$ rpm -qVaSee the man page for rpm to see a complete explanation of each column. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Updating Software Group contains 4 rules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
The dnf command line tool is used to install and
update software packages. The system also provides a graphical
software update tool in the System menu, in the Administration submenu,
called Software Update.
AlmaLinux OS 9 systems contain an installed software catalog called the RPM database, which records metadata of installed packages. Consistently using dnf or the graphical Software Update for all software installation
allows for insight into the current inventory of installed software on the system.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Services Group contains 2 groups and 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
The best protection against vulnerable software is running less software. This section describes how to review
the software which AlmaLinux OS 9 installs on a system and disable software which is not needed. It
then enumerates the software packages installed on a default AlmaLinux OS 9 system and provides guidance about which
ones can be safely disabled.
AlmaLinux OS 9 provides a convenient minimal install option that essentially installs the bare necessities for a functional system. When building AlmaLinux OS 9 systems, it is highly recommended to select the minimal packages and then build up the system from there. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group SSH Server Group contains 1 group and 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
The SSH protocol is recommended for remote login and
remote file transfer. SSH provides confidentiality and integrity
for data exchanged between two systems, as well as server
authentication, through the use of public key cryptography. The
implementation included with the system is called OpenSSH, and more
detailed documentation is available from its website,
https://www.openssh.com.
Its server program is called sshd and provided by the RPM package
openssh-server. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group Configure OpenSSH Server if Necessary Group contains 1 rule | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ref]
If the system needs to act as an SSH server, then
certain changes should be made to the OpenSSH daemon configuration
file /etc/ssh/sshd_config. The following recommendations can be
applied to this file. See the sshd_config(5) man page for more
detailed information. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Red Hat and Red Hat Enterprise Linux are either registered
trademarks or trademarks of Red Hat, Inc. in the United States and other
countries. All other names are registered trademarks or trademarks of their
respective companies.