Skip to content

NixOS must generate audit records for all account creations, modifications, disabling, and termination events.

An XCCDF Rule

Description

Without generating audit records that are specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one. Audit records can be generated from various components within the information system (e.g., module or policy filter). Satisfies: SRG-OS-000476-GPOS-00221, SRG-OS-000042-GPOS-00020, SRG-OS-000274-GPOS-00104, SRG-OS-000275-GPOS-00105, SRG-OS-000276-GPOS-00106, SRG-OS-000277-GPOS-00107, SRG-OS-000477-GPOS-00222, SRG-OS-000304-GPOS-00121

ID
SV-268167r1039389_rule
Version
ANIX-00-001820
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Modify NixOS to generate audit logs on account creations and modifications.

Edit /etc/nixos/configuration.nix and ensure the following options are configured:

 security.audit.rules = [
  "-w /etc/sudoers -p wa -k identity"