{"description": "All audit configuration files permissions must be 640 or more restrictive.\n<pre>chmod 0640 /etc/audit/audit*.{rules,conf} /etc/audit/rules.d/*</pre>", "rationale": "Without the capability to restrict which roles and individuals can\nselect which events are audited, unauthorized personnel may be able\nto prevent the auditing of critical events.\nMisconfigured audits may degrade the system's performance by\noverwhelming the audit log. Misconfigured audits may also make it more\ndifficult to establish, correlate, and investigate the events relating\nto an incident or identify those responsible for one.", "severity": "medium", "references": {"nist": ["AU-12 b"], "srg": ["SRG-OS-000063-GPOS-00032"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": null, "ocil": "\nTo properly set the permissions of <code>/etc/audit/</code>, run the command:\n<pre>$ sudo chmod 0640 /etc/audit/</pre>\n\nTo properly set the permissions of <code>/etc/audit/rules.d/</code>, run the command:\n<pre>$ sudo chmod 0640 /etc/audit/rules.d/</pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must allow only the information system security manager (ISSM) (or individuals or roles appointed by the ISSM) to select which auditable events are to be audited.", "fixtext": "Configure the files in directory \"/etc/audit/rules.d/\" and the \"/etc/audit/auditd.conf\" file to have a mode of \"0640\" with the following commands:\n\n$ sudo chmod 0640 /etc/audit/rules.d/audit.rules\n$ sudo chmod 0640 /etc/audit/rules.d/[customrulesfile].rules\n$ sudo chmod 0640 /etc/audit/auditd.conf", "checktext": "Verify that the files in directory \"/etc/audit/rules.d/\" and \"/etc/audit/auditd.conf\" file have a mode of \"0640\" or less permissive with the following command:\n\n$ sudo find /etc/audit/rules.d/ /etc/audit/audit.rules /etc/audit/auditd.conf -type f -exec stat -c \"%a %n\" {} \\;\n\n600 /etc/audit/rules.d/audit.rules\n640 /etc/audit/audit.rules\n640 /etc/audit/auditd.conf", "vuldiscussion": "Without the capability to restrict the roles and individuals that 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."}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[audit]", "system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_audit", "system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Audit Configuration Files Permissions are 640 or More Restrictive", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/auditing/auditd_configure_rules/file_permissions_audit_configuration/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": ["/etc/audit/", "/etc/audit/rules.d/"], "file_regex": ["^.*audit(\\.rules|d\\.conf)$", "^.*\\.rules$"], "allow_stricter_permissions": "true", "filemode": "0640"}, "backends": {}}}