{"description": "A custom log sudo file can be configured with the 'logfile' tag. This rule configures\na sudo custom logfile at the default location suggested by CIS, which uses\n/var/log/sudo.log.", "rationale": "A sudo log file simplifies auditing of sudo commands.", "severity": "low", "references": {"pcidss": ["Req-10.2.5"], "cis": ["5.2.3"], "pcidss4": ["2.2.6", "2.2"]}, "control_references": {"cis": ["5.2.3"], "pcidss4": ["2.2.6", "2.2"]}, "components": [], "identifiers": {}, "ocil_clause": "logfile is not enabled in sudo", "ocil": "To determine if <tt>logfile</tt> has been configured for sudo, run the following command:\n<pre>$ sudo grep -ri \"^[\\s]*Defaults\\s*\\blogfile\\b.*\" /etc/sudoers /etc/sudoers.d/</pre>\nThe command should return a matching output.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[sudo]", "platforms": ["package[sudo]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_sudo"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Ensure Sudo Logfile Exists - sudo logfile", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/sudo/sudo_custom_logfile/rule.yml", "template": {"name": "sudo_defaults_option", "vars": {"option": "logfile", "option_regex_suffix": "\\s*=\\s*(?:\"?([^\",\\s]+)\"?)", "variable_name": "var_sudo_logfile"}, "backends": {}}}