DISA STIGS Viewer

NixOS must enforce authorized access to the corresponding private key for PKI-based authentication.

Overview

Finding ID Version Rule ID IA Controls Severity
V-268125 ANIX-00-000720 SV-268125r1039263_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
Anduril NixOS Security Technical Implementation Guide 2024-10-25

Details

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

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

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

If the contents of the key are displayed, this is a finding.
Fix Text (F-71952r1039262_fix)
Create new private/public key pairs that use a passcode using the following command:

$ sudo ssh-keygen -n [passphrase]