Skip to content

Configure AIDE To Notify Personnel if Baseline Configurations Are Altered

An XCCDF Rule

Description

The operating system file integrity tool must be configured to notify designated personnel of any changes to configurations.

Rationale

Detecting changes in the system can help avoid unintended, and negative consequences that could affect the security state of the operating system

ID
xccdf_org.ssgproject.content_rule_aide_disable_silentreports
Severity
Medium
References
Updated



Remediation - Ansible

- name: Configure AIDE To Notify Personnel if Baseline Configurations Are Altered
  block:

  - name: Check for duplicate values
    lineinfile:
      path: /etc/default/aide

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

if [ -e "/etc/default/aide" ] ; then
    
    LC_ALL=C sed -i "/^\s*SILENTREPORTS=/Id" "/etc/default/aide"