Skip to content

Install AIDE

An XCCDF Rule

Description

The aide package can be installed with the following command:
$ apt-get install aide

Rationale

The AIDE package must be installed if it is to be available for integrity checking.

ID
xccdf_org.ssgproject.content_rule_package_aide_installed
Severity
Medium
References
Updated

Remediation Templates

OS Build Blueprint

[[packages]]
name = "aide"
version = "*"

A Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
DEBIAN_FRONTEND=noninteractive apt-get install -y "aide"

else
    >&2 echo 'Remediation is not applicable, nothing was done'
fi

An Ansible Snippet

- name: Ensure aide is installed
  package:
    name: aide
    state: present
  when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
  tags:

A Puppet Snippet

include install_aide
class install_aide {
  package { 'aide':
    ensure => 'installed',
  }
}