{"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 off a encryption system must be used.\n\nSet the following configuration option in /etc/rsyslog.conf or in a file in /etc/rsyslog.d (using legacy syntax):\n<pre>$ActionSendStreamDriverMode 1</pre>\n\nAlternatively, use the RainerScript syntax:\n<pre>action(type=\"omfwd\" ... StreamDriverMode=\"1\")</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": "rsyslogd ActionSendStreamDriverMode is not set to 1", "ocil": "Verify the operating system encrypts audit records off-loaded onto a different system\nor media from the system being audited with the following commands:\n\n<pre>$ sudo grep -i '$ActionSendStreamDriverMode' /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>\n\nThe output should be:\n\n<pre>/etc/rsyslog.conf:$ActionSendStreamDriverMode 1</pre>", "oval_external_content": null, "fixtext": "Configure the operating system to encrypt off-loaded audit records by setting the following options in \"/etc/rsyslog.conf\" or \"/etc/rsyslog.d/[customfile].conf\":\n\n$ActionSendStreamDriverMode 1", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04  must encrypt the transfer of audit records off-loaded onto a different system or media from the system being audited.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must encrypt the transfer of audit records offloaded onto a different system or media from the system being audited 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 encrypts audit records offloaded onto a different system or media from the system being audited via rsyslog with the following command:\n\n$ grep -i 'StreamDriver[\\.]*Mode' /etc/rsyslog.conf /etc/rsyslog.d/*.conf\n\n/etc/rsyslog.conf:$ActionSendStreamDriverMode 1\n\nIf the value of the \"$ActionSendStreamDriverMode or StreamDriver.Mode\" option is not set to \"1\" or the line is commented out, this is a finding.\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.", "fixtext": "Configure Ubuntu 22.04 to encrypt offloaded audit records via rsyslog by setting the following options in \"/etc/rsyslog.conf\" or \"/etc/rsyslog.d/[customfile].conf\":\n\n$ActionSendStreamDriverMode 1"}}, "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 Encrypts Off-Loaded Audit Records", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_encrypt_offload_actionsendstreamdrivermode/rule.yml", "template": null}