← All rules
SOCLE-CLD-PKG-006// Packagesmediuminventory state

Install AIDE

Ensures the AIDE (Advanced Intrusion Detection Environment) package is installed so the host can perform file integrity monitoring.

Checked against what is installed or registered, packages present/absent, account databases.

A pass proves✓ running now✓ on disk✓ survives rebootthe qualified verdict →
Debian 12CIS 1.1.0Debian 13CIS 1.0.0FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0Ubuntu 22.04CIS 3.0.0Ubuntu 24.04CIS 1.0.0Ubuntu 26.04
One check, maps to 5 standards

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

AIDE maintains a cryptographic baseline of critical files (binaries, libraries, configuration) and reports any unauthorized change. Without it installed, no host-based integrity check exists, so an attacker who tampers with /etc, system binaries, or implants a rootkit can do so undetected. File integrity monitoring is a core defense-in-depth control and a requirement of CIS, ANSSI BP-028 (R76) and PCI-DSS 11.5.

What Pavois checks

Pavois asks the package manager whether aide is installed via the InSpec package resource (resolving to dpkg/rpm underneath). This queries the effective package database, not a guessed path, so it stays correct whether AIDE was installed from the distro repo or a meta-package.

describe package('aide-common') do
  it { should be_installed }
end

How to verify it is applied

Run dpkg -s aide on Debian/Ubuntu or rpm -q aide on RHEL-family. Expected output shows the package present (Status: install ok installed or a version string like aide-0.16-...).

Inspect & investigate

  • dpkg -l aide / rpm -q aide confirm installation.
  • AIDE runs typically log to /var/log/aide/aide.log and a daily cron/systemd timer (aidecheck.timer) emails or journals integrity diffs; check journalctl -u dailyaidecheck.service or journalctl -u aidecheck.service.

Remediation

Pavois's harden plan installs the aide package (package resource, install action) when you run pavois harden apply. Note that installation alone does not build the integrity database: initialize it afterwards with aideinit (Debian/Ubuntu) or aide --init (RHEL) and schedule periodic checks.

Pavois applies this with its own harden engine, the plan below, not a shell script:

actioninstall
nameaide-common
resourcepackage
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Installing AIDE is low-risk: it adds a tool without altering running services. The real operational cost comes later, the first aide --init is I/O intensive and the baseline must be regenerated after every legitimate change (package updates, config edits), otherwise daily reports flood with false positives. Store the database and config on read-only or off-host media so an intruder cannot rewrite the baseline.

Standards mapping

StandardReferenceTypeVersionConfidence
ANSSI BP-028R76direct2.0high
CIS11.5.2, 6.3.1, 6.1.1directper OS, see the benchmark tablehigh
NISTCM-6(a)supporting800-53 Rev 5 · 800-171 Rev 2 (pinned)medium
PCI DSS11.5.2supporting4.0.1medium
DISA STIGUBTU-22-651010, UBTU-24-100100directper OS STIG releasehigh

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references