documentation_complete: true

title: 'Audit Configuration Files Must Be Owned By Group root'

description: |-
    All audit configuration files must be owned by group root.
    <pre>chown :root /etc/audit/audit*.{rules,conf} /etc/audit/rules.d/*</pre>

rationale: |-
    Without the capability to restrict which roles and individuals can
    select which events are audited, unauthorized personnel may be able
    to prevent the auditing of critical events.
    Misconfigured audits may degrade the system's performance by
    overwhelming the audit log. Misconfigured audits may also make it more
    difficult to establish, correlate, and investigate the events relating
    to an incident or identify those responsible for one.

severity: medium

identifiers:
    cce@rhel8: CCE-86405-8
    cce@rhel9: CCE-86446-2
    cce@rhel10: CCE-88238-1
    cce@sle15: CCE-92544-6

references:
    srg: SRG-OS-000063-GPOS-00032

ocil: |-
    {{{ describe_file_group_owner(file="/etc/audit/", group="root") }}}
    {{{ describe_file_group_owner(file="/etc/audit/rules.d/", group="root") }}}

template:
    name: file_groupowner
    vars:
        filepath:
            - /etc/audit/
            - /etc/audit/rules.d/
        file_regex:
            - ^.*audit(\.rules|d\.conf)$
            - ^.*\.rules$
        gid_or_name: '0'
