← All rules
SOCLE-CLD-PKG-014// Packagesmediuminventory state

Install authselect Package

Ensures the authselect package is installed, providing the supported way to configure system authentication and the PAM stack on RHEL 8.

Checked against what is installed or registered, packages present/absent, account databases.

A pass proves✓ running now✓ on disk✓ survives rebootthe qualified verdict →
FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0
One check, maps to 1 standard

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

authselect lets administrators select system authentication and identity sources from tested, supported profiles instead of hand-editing the PAM stack, where a single mistake can lock everyone out or silently weaken authentication. As the successor to authconfig, it ships vetted profiles and applies them atomically, reducing configuration drift and breakage. CIS 5.3.1.2 requires it as the foundation for the RHEL 8 PAM hardening controls.

What Pavois checks

Pavois asks rpm (via the InSpec package resource) whether authselect is installed. Checking the effective package state confirms the tool that downstream PAM controls rely on is actually present.

describe package('authselect') do
  it { should be_installed }
end

How to verify it is applied

Run rpm -q authselect, expected a version string. Confirm a profile is selected with authselect current, which lists the active profile and its enabled features.

Inspect & investigate

  • rpm -q authselect confirms installation; authselect current shows the active profile.
  • Profile applications are journaled (journalctl | grep authselect); resulting authentication events appear in /var/log/secure.

Remediation

Pavois's harden plan installs the authselect package (package resource, install action) with pavois harden apply. Installing it makes the tool available; you still need to select and apply a profile (e.g. authselect select sssd) to actually manage the PAM stack.

Pavois applies this with its own harden engine, the plan below, not a shell script:

actioninstall
nameauthselect
resourcepackage
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Installing the package alone is non-disruptive. The risk lies in applying a profile: switching authselect profiles rewrites the PAM and nsswitch configuration and can lock out users or break custom PAM modules. If the host has manual /etc/pam.d edits, authselect may refuse to apply without --force; review the diff and keep a root console session open before applying.

Standards mapping

StandardReferenceTypeVersionConfidence
CIS5.3.1.2directper OS, see the benchmark tablehigh

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references