SV-260471r1155214_rule
V-260471
SRG-OS-000254-GPOS-00095
UBTU-22-212015
CAT II
10
Configure Ubuntu 22.04 LTS to produce audit records at system startup.
Edit the "/etc/default/grub" file and add "audit=1" to the "GRUB_CMDLINE_LINUX" option and to the "GRUB_CMDLINE_LINUX_DEFAULT" option.
GRUB_CMDLINE_LINUX_DEFAULT="audit=1"
GRUB_CMDLINE_LINUX="audit=1"
To update the grub config file, run:
$ sudo update-grub
Verify that Ubuntu 22.04 LTS enables auditing at system startup in GRUB.
Check the main GRUB defaults to ensure auditing is enabled:
$ sudo grep -ir GRUB_CMDLINE_LINUX /etc/default/grub
/etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="audit=1"
/etc/default/grub:GRUB_CMDLINE_LINUX="audit=1"
If any Linux lines do not contain "audit=1", this is a finding.
Check the generated GRUB configuration to ensure the setting is propagated to the bootloader:
$ sudo grep "^\s*linux" /boot/grub/grub.cfg
linux /vmlinuz-6.8.0-31-generic root=UUID=c92a542f-aee4-4af9-94b2-203624ccb8e3 ro audit=1 quiet splash $vt_handoff
linux /vmlinuz-6.8.0-31-generic root=UUID=c92a542f-aee4-4af9-94b2-203624ccb8e3 ro recovery nomodeset dis_ucode_ldr audit=1
If any Linux lines do not contain "audit=1", this is a finding.
Note: Output details may vary by system.
V-260471
False
UBTU-22-212015
Verify that Ubuntu 22.04 LTS enables auditing at system startup in GRUB.
Check the main GRUB defaults to ensure auditing is enabled:
$ sudo grep -ir GRUB_CMDLINE_LINUX /etc/default/grub
/etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="audit=1"
/etc/default/grub:GRUB_CMDLINE_LINUX="audit=1"
If any Linux lines do not contain "audit=1", this is a finding.
Check the generated GRUB configuration to ensure the setting is propagated to the bootloader:
$ sudo grep "^\s*linux" /boot/grub/grub.cfg
linux /vmlinuz-6.8.0-31-generic root=UUID=c92a542f-aee4-4af9-94b2-203624ccb8e3 ro audit=1 quiet splash $vt_handoff
linux /vmlinuz-6.8.0-31-generic root=UUID=c92a542f-aee4-4af9-94b2-203624ccb8e3 ro recovery nomodeset dis_ucode_ldr audit=1
If any Linux lines do not contain "audit=1", this is a finding.
Note: Output details may vary by system.
M
5594