documentation_complete: true

title: 'Ensure the audit Subsystem is Installed'

description: 'The audit package should be installed.'

rationale: 'The auditd service is an access monitoring and accounting daemon, watching system calls to audit any access, in comparison with potential local access control policy such as SELinux policy.'

severity: medium

identifiers:
    cce@rhcos4: CCE-82669-3
    cce@rhel8: CCE-81043-2
    cce@rhel9: CCE-83649-4
    cce@rhel10: CCE-88240-7
    cce@sle12: CCE-83023-2
    cce@sle15: CCE-85612-0
    cce@sle16: CCE-95898-3
    cce@slmicro5: CCE-93756-5
    cce@slmicro6: CCE-94705-1

references:
    cis@sle12: 4.1.1.1
    cis@sle15: 4.1.1.1
    hipaa: 164.308(a)(1)(ii)(D),164.308(a)(5)(ii)(C),164.310(a)(2)(iv),164.310(d)(2)(iii),164.312(b)
    nerc-cip: CIP-004-6 R3.3,CIP-007-3 R6.5
    nist: AC-7(a),AU-7(1),AU-7(2),AU-14,AU-12(2),AU-2(a),CM-6(a)
    nist@sle12: AU-7(a),AU-7(b),AU-8(b),AU-12.1(iv),AU-12(3),AU-12(c),CM-5(1)
    ospp: FAU_GEN.1
    pcidss: Req-10.1
    srg: SRG-OS-000062-GPOS-00031,SRG-OS-000037-GPOS-00015,SRG-OS-000038-GPOS-00016,SRG-OS-000039-GPOS-00017,SRG-OS-000040-GPOS-00018,SRG-OS-000041-GPOS-00019,SRG-OS-000042-GPOS-00021,SRG-OS-000051-GPOS-00024,SRG-OS-000054-GPOS-00025,SRG-OS-000122-GPOS-00063,SRG-OS-000254-GPOS-00095,SRG-OS-000255-GPOS-00096,SRG-OS-000337-GPOS-00129,SRG-OS-000348-GPOS-00136,SRG-OS-000349-GPOS-00137,SRG-OS-000350-GPOS-00138,SRG-OS-000351-GPOS-00139,SRG-OS-000352-GPOS-00140,SRG-OS-000353-GPOS-00141,SRG-OS-000354-GPOS-00142,SRG-OS-000358-GPOS-00145,SRG-OS-000365-GPOS-00152,SRG-OS-000392-GPOS-00172,SRG-OS-000475-GPOS-00220
    stigid@ol8: OL08-00-030180
    stigid@sle12: SLES-12-020000
    stigid@sle15: SLES-15-030650

ocil_clause: 'the audit package is not installed'

ocil: '{{{ ocil_package("audit") }}}'

fixtext: |-
    Install the audit service (if the audit service is not already installed) with the following command:

    {{{ package_install("audit") }}}

{{% if 'ubuntu' not in product and 'debian' not in product %}}
srg_requirement: '{{{ srg_requirement_package_installed("audit") }}}'
{{% else %}}
srg_requirement: '{{{ srg_requirement_package_installed("auditd") }}}'
{{% endif %}}

template:
    name: package_installed
    vars:
        pkgname: audit
        pkgname@ubuntu2204: auditd
        pkgname@ubuntu2404: auditd
        pkgname@debian11: auditd
        pkgname@debian12: auditd
        pkgname@debian13: auditd
