{"description": "All audit directories must be group owned by root user. By default, the path for audit log is <pre>/var/log/audit/</pre>.\n\nTo properly set the group owner of <code>/var/log/audit</code>, run the command:\n\n  <pre>$ sudo chgrp root /var/log/audit</pre>\n  \n\n\nIf <tt>log_group</tt> in <tt>/etc/audit/auditd.conf</tt> is set to a group other than the <tt>root</tt>\ngroup account, change the group ownership of the audit directories to this specific group.", "rationale": "Unauthorized disclosure of audit records can reveal system and configuration data to\nattackers, thus compromising its confidentiality.", "severity": "medium", "references": {"cis-csc": ["1", "11", "12", "13", "14", "15", "16", "18", "19", "3", "4", "5", "6", "7", "8"], "cjis": ["5.4.1.1"], "cobit5": ["APO01.06", "APO11.04", "APO12.06", "BAI03.05", "BAI08.02", "DSS02.02", "DSS02.04", "DSS02.07", "DSS03.01", "DSS05.04", "DSS05.07", "DSS06.02", "MEA02.01"], "cui": ["3.3.1"], "isa-62443-2009": ["4.2.3.10", "4.3.3.3.9", "4.3.3.5.8", "4.3.3.7.3", "4.3.4.4.7", "4.3.4.5.6", "4.3.4.5.7", "4.3.4.5.8", "4.4.2.1", "4.4.2.2", "4.4.2.4"], "isa-62443-2013": ["SR 2.1", "SR 2.10", "SR 2.11", "SR 2.12", "SR 2.8", "SR 2.9", "SR 5.2", "SR 6.1"], "iso27001-2013": ["A.10.1.1", "A.11.1.4", "A.11.1.5", "A.11.2.1", "A.12.4.1", "A.12.4.2", "A.12.4.3", "A.12.4.4", "A.12.7.1", "A.13.1.1", "A.13.1.3", "A.13.2.1", "A.13.2.3", "A.13.2.4", "A.14.1.2", "A.14.1.3", "A.16.1.4", "A.16.1.5", "A.16.1.7", "A.6.1.2", "A.7.1.1", "A.7.1.2", "A.7.3.1", "A.8.2.2", "A.8.2.3", "A.9.1.1", "A.9.1.2", "A.9.2.3", "A.9.4.1", "A.9.4.4", "A.9.4.5"], "nist": ["CM-6(a)", "AC-6(1)", "AU-9(4)"], "nist-csf": ["DE.AE-3", "DE.AE-5", "PR.AC-4", "PR.DS-5", "PR.PT-1", "RS.AN-1", "RS.AN-4"], "pcidss": ["Req-10.5.1"], "srg": ["SRG-OS-000057-GPOS-00027", "SRG-OS-000058-GPOS-00028", "SRG-OS-000059-GPOS-00029", "SRG-OS-000206-GPOS-00084"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "there is a directory owned by different group", "ocil": "\nDetermine the audit log group by running the following command:\n\n$ sudo grep -P '^[ ]*log_group[ ]+=.*$' /etc/audit/auditd.conf\n\nThen, check that all directories within the /var/log/audit directory are owned by the group specified as log_group or by root if the log_group is not specified.\nRun the following command:\n\n$ sudo find /var/log/audit -type d -printf \"%p %g\\n\"\n\nAll listed directories must be owned by the log_group or by root if the log_group is not specified.", "oval_external_content": null, "fixtext": "\nChange the group of the directory of \"/var/log/audit\" to be owned by a correct group.\n\nIdentify the group that is configured to own audit log:\n\n$ sudo grep -P '^[ ]*log_group[ ]+=.*$' /etc/audit/auditd.conf\n\nChange the ownership to that group:\n$ sudo chgrp ${GROUP} /var/log/audit", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 audit logs must be group-owned by root or by a restricted logging group to prevent unauthorized read access.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 audit logs must be group-owned by root or by a restricted logging group to prevent unauthorized read access.", "vuldiscussion": "Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.", "checktext": "Verify the audit logs are group-owned by \"root\" or a restricted logging group.\n\nFirst determine if a group other than \"root\" has been assigned to the audit logs with the following command:\n\n$ sudo grep log_group /etc/audit/auditd.conf\n\nThen determine where the audit logs are stored with the following command:\n\n$ sudo grep -iw log_file /etc/audit/auditd.conf\n\nlog_file = /var/log/audit/audit.log\n\nThen using the location of the audit log file, determine if the audit log is group-owned by \"root\" using the following command:\n\n$ sudo stat -c \"%G %n\" /var/log/audit/audit.log\n\nroot /var/log/audit/audit.log\n\nIf the audit log is not group-owned by \"root\" or the configured alternative logging group, this is a finding.", "fixtext": "Change the group of the directory of \"/var/log/audit\" to be owned by a correct group.\n\nIdentify the group that is configured to own audit log:\n\n$ sudo grep -P '^[ ]*log_group[ ]+=.*$' /etc/audit/auditd.conf\n\nChange the ownership to that group:\n\n$ sudo chgrp ${GROUP} /var/log/audit"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel", "package[audit]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_audit", "system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "System Audit Directories Must Be Group Owned By Root", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/auditing/auditd_configure_rules/directory_group_ownership_var_log_audit/rule.yml", "template": null}