NixOS must have the packages required for offloading audit logs installed and running.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-268107SRG-OS-000051-GPOS-00024ANIX-00-000460SV-268107r1039594_rule2024-10-251
Description
Information stored in one location is vulnerable to accidental or incidental deletion or alteration. Off-loading is a common process in information systems with limited audit storage capacity. NixOS supports "syslog-ng". "syslog-ng" is a common system utility providing support for message logging. Support for both internet and Unix domain sockets enables this utility to support both local and remote logging. This utility also natively supports TLS to securely encrypt and off-load auditing. Satisfies: SRG-OS-000051-GPOS-00024, SRG-OS-000269-GPOS-00103
ℹ️ Check
Verify that the syslog-ng service is running with the following command: $ systemctl status syslog-ng.service syslog-ng.service - syslog-ng daemon Loaded: loaded (/etc/systemd/system/syslog-ng.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-06-04 02:51:43 UTC; 13min ago If the syslog-ng service is not "active" and "running", this is a finding.
✔️ Fix
Configure the operating system to offload audit logs. Install the syslog-ng service (if the syslog-ng service is not already installed) and ensure the syslog-ng service is enabled by adding or updating the following configuration in /etc/nixos/configuration.nix: services.syslog-ng.enable = true; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch