Description
The AIDE database (/var/lib/aide/aide.db) and its configuration are the reference of the
integrity check. A copy must be kept where the system cannot write: read-only media, a backup
server, or an integrity platform that pulls it. Checks should be run against that copy, or the
local database compared with it, and its own checksum recorded.
Rationale
An integrity check is only as trustworthy as its reference. A database that root can rewrite does not resist an attacker who already has root.
Impact
Every legitimate update of the database (after upgrades) must also update the protected copy.
Audit
- Find where the protected copy of
/var/lib/aide/aide.dbis kept, and check that the system cannot modify it. - Compare it with the local database:
sha512sum /var/lib/aide/aide.dbmust match the checksum recorded with the copy, unless a reviewed update has been made since.
Remediation
- After each reviewed database build or update, copy
/var/lib/aide/aide.dband/etc/aide/to a read-only medium or a backup server the system cannot write to, and recordsha512sum /var/lib/aide/aide.dbwith it. - For a trusted check, run AIDE from the copy, for example
aide --check -c /etc/aide/aide.conf -B 'database_in=file:/mnt/ro/aide.db'.
Rollback
Not applicable.
References
- aide.conf(5), Debian manual pages Debian, vendor-doc, accessed 2026-10-18
- ANSSI-BP-028 v2.0 - Recommandations de configuration d'un système GNU/Linux (R77) ANSSI, guide, accessed 2026-10-18
Mappings
| Framework | ID | Relation |
|---|---|---|
| ANSSI-BP-028 - Recommandations de configuration d'un système GNU/Linux2.0 | R77 | equivalent |
| NIST SP 800-53 Rev. 55.1.1 | SI-7 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
Related controls
- related
CB-DEB-AUDIT-034Build the AIDE database and check file integrity every day
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-18, 2026-10-18 |
| Translations | fr |