DISA STIGS Viewer

For PKI-based authentication, AlmaLinux OS 9 must enforce authorized access to the corresponding private key.

Overview

Finding ID Version Rule ID IA Controls Severity
V-269410 ALMA-09-038850 SV-269410r1050293_rule   Medium
Description
If the private key is discovered, an attacker can use the key to authenticate as an authorized user and gain access to the network infrastructure. The cornerstone of the PKI is the private key used to encrypt or digitally sign information. If the private key is stolen, this will lead to the compromise of the authentication and nonrepudiation gained through PKI because the attacker can use the private key to digitally sign documents and pretend to be the authorized user. Both the holders of a digital certificate and the issuing authority must protect the computers, storage devices, or whatever they use to keep the private keys.
STIG Date
CloudLinux AlmaLinux OS 9 Security Technical Implementation Guide 2025-05-22

Details

Check Text (C-73441r1048606_chk)
Verify the SSH private key files have a passcode.

For each private key stored on the system, use the following command:

$ ssh-keygen -y -f /path/to/file

If the contents of the key are displayed, instead of a passphrase prompt, this is a finding.
Fix Text (F-73342r1048607_fix)
Create a new private and public key pair that uses a passcode, as the correct user, with the following command:

$ ssh-keygen -n [passphrase]