Rule ID
SV-268154r1131111_rule
Version
V1R2
CCIs
CCI-003992
Changes to any software components can have significant effects on the overall security of the operating system. This requirement ensures the software has not been tampered with and that it has been provided by a trusted vendor. Accordingly, patches, service packs, device drivers, or operating system components must be signed with a certificate recognized and approved by the organization. Verifying the authenticity of the software prior to installation validates the integrity of the patch or upgrade received from a vendor. This ensures the software has not been tampered with and that it has been provided by a trusted vendor. Self-signed certificates are disallowed by this requirement. The operating system should not have to verify the software again. This requirement does not mandate DOD certificates for this purpose; however, the certificate used to verify the software must be from an approved certificate authority (CA).
Verify NixOS prevents installations that have not been digitally signed with the following command: $ grep -R require-sigs /etc/nix/nix.conf require-sigs = true If "require-sigs" is not set to "true" or is missing, this is a finding.
Configure NixOS to require signatures. Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix: nix.settings.require-sigs = true; Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch