Skip to content

NixOS must prevent all software from executing at higher privilege levels than users executing the software.

An XCCDF Rule

Description

In certain situations, software applications/programs need to execute with elevated privileges to perform required functions. However, if the privileges required for execution are at a higher level than the privileges assigned to organizational users invoking such applications/programs, those users are indirectly provided with greater privileges than assigned by the organizations. Some programs and processes are required to operate at a higher privilege level and therefore should be excluded from the organization-defined software list after review.

ID
SV-268148r1039332_rule
Version
ANIX-00-001280
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure the audit service to produce audit records.

Install the audit service (if the audit service is not already installed) and ensure the audit service is enabled by adding or updating the following configurations in /etc/nixos/configuration.nix:

 security.auditd.enable = true;
 security.audit.enable = true;