Rule ID
SV-268157r1131119_rule
Version
V1R2
CCIs
CCI-002890
Privileged access contains control and configuration information and is particularly sensitive, so additional protections are necessary. This is maintained by using cryptographic mechanisms, such as a hash function or digital signature, to protect integrity. Nonlocal maintenance and diagnostic activities are those activities conducted by individuals communicating through a network, either an external network (e.g., the internet) or an internal network. Local maintenance and diagnostic activities are those activities carried out by individuals physically present at the information system or information system component and not communicating across a network connection. The operating system can meet this requirement through leveraging a cryptographic module. This requirement does not cover hardware/software components that may support information system maintenance, yet are a part of the system (e.g., the software implementing "ping," "ls," "ipconfig," or the hardware and software implementing the monitoring port of an Ethernet switch).
Verify NixOS uses the following FIPS 140-3 approved MAC codes in openssh with the following command: $ grep Mac /etc/ssh/sshd_config Macs hmac-sha2-512 hmac-sha2-256 If "Macs" contains any ciphers other than "hmac-sha2-512" or "hmac-sha2-256", this is a finding.
Configure /etc/nixos/configuration.nix to use the following FIPS 140-3 approved MAC codes in openssh. Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix: services.openssh.macs = [ "hmac-sha2-512" "hmac-sha2-256" ]; Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch