{"description": "If the <tt>auditd</tt> daemon is configured to use the\n<tt>augenrules</tt> program to read audit rules during daemon startup (the\ndefault), add the following line to to the bottom of a file with suffix\n<tt>.rules</tt> in the directory <tt>/etc/audit/rules.d</tt>:\n<pre>-f <sub idref=\"var_audit_failure_mode\" /></pre>\nIf the <tt>auditd</tt> daemon is configured to use the <tt>auditctl</tt>\nutility to read audit rules during daemon startup, add the following line to the\nbottom of the <tt>/etc/audit/audit.rules</tt> file:\n<pre>-f <sub idref=\"var_audit_failure_mode\" /></pre>", "rationale": "It is critical for the appropriate personnel to be aware if a system\nis at risk of failing to process audit logs as required. Without this\nnotification, the security personnel may be unaware of an impending failure of\nthe audit capability, and system operation may be adversely affected.\n<br /><br />\nAudit processing failures include software/hardware errors, failures in the\naudit capturing mechanisms, and audit storage capacity being reached or\nexceeded.", "severity": "medium", "references": {"cis-csc": ["1", "14", "15", "16", "3", "5", "6"], "cobit5": ["APO11.04", "BAI03.05", "DSS05.04", "DSS05.07", "MEA02.01"], "cui": ["3.3.1", "3.3.4"], "hipaa": ["164.308(a)(1)(ii)(D)", "164.308(a)(3)(ii)(A)", "164.308(a)(5)(ii)(C)", "164.312(a)(2)(i)", "164.312(b)", "164.312(d)", "164.312(e)"], "isa-62443-2009": ["4.3.3.3.9", "4.3.3.5.8", "4.3.4.4.7", "4.4.2.1", "4.4.2.2", "4.4.2.4"], "isa-62443-2013": ["SR 2.10", "SR 2.11", "SR 2.12", "SR 2.8", "SR 2.9"], "iso27001-2013": ["A.12.4.1", "A.12.4.2", "A.12.4.3", "A.12.4.4", "A.12.7.1"], "nist": ["AU-5(b)", "SC-24", "CM-6(a)"], "nist-csf": ["PR.PT-1"], "srg": ["SRG-OS-000046-GPOS-00022", "SRG-OS-000047-GPOS-00023"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "the system is not configured to shutdown on auditd failures", "ocil": "To verify that the system will shutdown when <tt>auditd</tt> fails,\nrun the following command:\n<pre>$ sudo grep \"\\-f <sub idref=\"var_audit_failure_mode\" />\" /etc/audit/audit.rules</pre>\nThe output should contain:\n<pre>-f <sub idref=\"var_audit_failure_mode\" /></pre>", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to shutdown when auditing failures occur.\n\nIf the auditd daemon is configured to use the augenrules program to read\naudit rules during daemon startup (the default), add the following line to\nthe bottom of \"/etc/audit/rules.d/immutable.rules\":\n-f <sub idref=\"var_audit_failure_mode\" />\n\nIf the auditd daemon is configured to use the auditctl utility to read\naudit rules during daemon startup, add the following line to the\nbottom of the /etc/audit/audit.rules file:\n-f <sub idref=\"var_audit_failure_mode\" />", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 system must shut down when an audit processing failure occurs.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must take appropriate action when a critical audit processing failure occurs.", "vuldiscussion": "It is critical for the appropriate personnel to be aware if a system is at risk of failing to process audit logs as required. Without this notification, the security personnel may be unaware of an impending failure of the audit capability, and system operation may be adversely affected.\n\nAudit processing failures include software/hardware errors, failures in the audit capturing mechanisms, and audit storage capacity being reached or exceeded.", "checktext": "Verify the audit service is configured to panic on a critical error with the following command:\n\n$ sudo grep \"\\-f\" /etc/audit/audit.rules\n\n-f 2\n\nIf the value for \"-f\" is not \"2\", and availability is not documented as an overriding concern, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to shut down when auditing failures occur.\n\nAdd the following line to the bottom of the /etc/audit/rules.d/audit.rules file:\n\n-f 2"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[audit]", "system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel", "package_audit"], "bash_conditional": null, "fixes": {}, "title": "Shutdown System When Auditing Failures Occur", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/auditing/auditd_configure_rules/audit_rules_system_shutdown/rule.yml", "template": null}