{"description": "Rsyslogd is a system utility providing support for message logging. Support\nfor both internet and UNIX domain sockets enables this utility to support both local\nand remote logging.  Couple this utility with <tt>gnutls</tt> (which is a secure communications\nlibrary implementing the SSL, TLS and DTLS protocols), and you have a method to securely\nencrypt and off-load auditing.\n\nWhen using <tt>rsyslogd</tt> to off-load logs the remote system must be authenticated.\n\nSet the following configuration option in /etc/rsyslog.conf or in a file in /etc/rsyslog.d (using legacy syntax):\n<pre>$ActionSendStreamDriverAuthMode x509/name</pre>\nAlternatively, use the RainerScript syntax:\n<pre>action(type=\"omfwd\" Target=\"some.example.com\" StreamDriverAuthMode=\"x509/name\")</pre>", "rationale": "The audit records generated by Rsyslog contain valuable information regarding system\nconfiguration, user authentication, and other such information. Audit records should be\nprotected from unauthorized access.", "severity": "medium", "references": {"nist": ["AU-4(1)"], "srg": ["SRG-OS-000342-GPOS-00133", "SRG-OS-000479-GPOS-00224"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "$ActionSendStreamDriverAuthMode in /etc/rsyslog.conf is not set to x509/name", "ocil": "Verify the operating system authenticates the remote logging server for off-loading audit logs with the following command:\n\n<pre>$ sudo grep -i '$ActionSendStreamDriverAuthMode' /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>\nThe output should be\n<pre>$/etc/rsyslog.conf:$ActionSendStreamDriverAuthMode x509/name</pre>", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to authenticate the remote logging server for off-loading audit logs by setting the following option in \"/etc/rsyslog.conf\" or \"/etc/rsyslog.d/[customfile].conf\":\n\n$ActionSendStreamDriverAuthMode x509/name", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must authenticate the remote logging server for off-loading audit logs.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must authenticate the remote logging server for offloading audit logs via rsyslog.", "vuldiscussion": "Information stored in one location is vulnerable to accidental or incidental deletion or alteration.\n\nOffloading is a common process in information systems with limited audit storage capacity.\n\nUbuntu 22.04 installation media provides \"rsyslogd\", a system utility providing support for message logging. Support for both internet and Unix domain sockets enables this utility to support both local and remote logging. Coupling this utility with \"gnutls\" (a secure communications library implementing the SSL, TLS and DTLS protocols) creates a method to securely encrypt and offload auditing.\n\n\"Rsyslog\" supported authentication modes include:\nanon - anonymous authentication\nx509/fingerprint - certificate fingerprint authentication\nx509/certvalid - certificate validation only\nx509/name - certificate validation and subject name authentication", "checktext": "Verify Ubuntu 22.04 authenticates the remote logging server for offloading audit logs with the following command:\n\n$ grep -i 'StreamDriver[\\.]*AuthMode' /etc/rsyslog.conf /etc/rsyslog.d/*.conf\n\n/etc/rsyslog.conf:$ActionSendStreamDriverAuthMode x509/name\n\nIf the variable name \"StreamDriverAuthMode\" is present in an omfwd statement block, this is not a finding. However, if the \"StreamDriverAuthMode\" variable is in a module block, this is a finding.\n\nIf the value of the \"$ActionSendStreamDriverAuthMode or StreamDriver.AuthMode\" option is not set to \"x509/name\" or the line is commented out, ask the system administrator (SA) to indicate how the audit logs are offloaded to a different system or media.\n\nIf there is no evidence that the transfer of the audit logs being offloaded to another system or media is encrypted, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to authenticate the remote logging server for offloading audit logs by setting the following option in \"/etc/rsyslog.conf\" or \"/etc/rsyslog.d/[customfile].conf\":\n\n$ActionSendStreamDriverAuthMode x509/name"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel", "package[rsyslog]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_rsyslog", "system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Ensure Rsyslog Authenticates Off-Loaded Audit Records", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_encrypt_offload_actionsendstreamdriverauthmode/rule.yml", "template": null}