{"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 an 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>$DefaultNetstreamDriver gtls</pre>\n\nAlternatively, use the RainerScript syntax:\n<pre>global(DefaultNetstreamDriver=\"gtls\")</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 DefaultNetstreamDriver not set to gtls", "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 '$DefaultNetstreamDriver' /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>\n\nThe output should be:\n\n<pre>/etc/rsyslog.conf:$DefaultNetstreamDriver gtls</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$DefaultNetstreamDriver gtls", "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 via the gtls driver 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.", "checktext": "Verify Ubuntu 22.04 uses the gtls driver to encrypt audit records offloaded onto a different system or media from the system being audited with the following command:\n\n$ grep -Ei 'DefaultNetStreamDriver\\b|StreamDriver.Name' /etc/rsyslog.conf /etc/rsyslog.d/*.conf\n\n/etc/rsyslog.conf:$DefaultNetstreamDriver gtls\n\nIf the value of the \"$DefaultNetstreamDriver or StreamDriver\" option is not set to \"gtls\" or the line is commented out, this is a finding.\n\nIf the variable name \"StreamDriver\" is present in an omfwd statement block, this is not a finding. However, if the \"StreamDriver\" variable is in a module block, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to use the gtls driver to encrypt offloaded audit records by setting the following options in \"/etc/rsyslog.conf\" or \"/etc/rsyslog.d/[customfile].conf\":\n\n$DefaultNetstreamDriver gtls"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[rsyslog]", "system_with_kernel"], "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_defaultnetstreamdriver/rule.yml", "template": null}