SV-268157r1131119_rule
V-268157
SRG-OS-000393-GPOS-00173
ANIX-00-001550
CAT I
10
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
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.
V-268157
False
ANIX-00-001550
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.
M
5658