Ensure the audispd's remote logging daemon direction is correct
An XCCDF Rule
Description
Ensure the direction of logs in audisp-remote
plug-in of the audispd
audit event multiplexor is correct.
Check that the direction
directive in
/etc/audisp/plugins.d/au-remote.conf
is out
.
Restart the auditd
service to apply configuration changes:
$ sudo service auditd restart
Rationale
The auditd service does not include the ability to send audit records to a centralized server for management directly. It does, however, include a plug-in for audit event multiplexor (audispd) to pass audit records to a remote server. The direction is dictated by the plugin, and this parameter is used by the multiplexor to understand the direction of events.
- ID
- xccdf_org.ssgproject.content_rule_auditd_audispd_remote_daemon_direction
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-87159-0
- DISA-STIG-RHEL-07-030201
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ] && rpm --quiet -q audit; then
if [ -e "/etc/audisp/plugins.d/au-remote.conf" ] ; then
LC_ALL=C sed -i "/^\s*direction\s*=\s*/Id" "/etc/audisp/plugins.d/au-remote.conf"