TMAegis
More rules for linux

TMA-LNX-AUDIT-ENABLED

Ensure auditd service is enabled

MediumLevel 2Automatedlinux

Description

The auditd service records security-relevant events.

How it is checked

Audit method: Shell command

shell
systemctl is-enabled auditd
Expected output
enabled

How it is fixed

Fix method: Shell command

shell
systemctl enable --now auditd

Properties

Operating systems
ubuntu-22.04, ubuntu-24.04, rocky-9
Tags
loggingauditd
Reference
CIS Linux Benchmark - Logging and Auditing / Configure System Accounting (auditd); requires the auditd package

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target linux --level 2