Skip to content

NixOS must generate audit records when successful/unsuccessful attempts to delete privileges occur.

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).

ID
SV-268164r1039380_rule
Version
ANIX-00-001730
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure /etc/nixos/configuration.nix to record attempts to delete privileges by adding the following configuration settings:

 security.audit.rules = [
  "-a always,exit -F path=/run/current-system/sw/bin/usermod -F perm=x -F auid>=1000 -F auid!=unset -k privileged-usermod"
 ];