Linux distributions
TMA-ALMA9-6.3.4
Ensure report_url is configured
Beschreibung
The report_url directive in aide.conf names the destination(s) to which AIDE writes each integrity check's report. It accepts multiple destinations and supports a syslog:<facility> target - where <facility> is a syslog facility, such as one of LOG_LOCAL0 through LOG_LOCAL7 - that sends the report to the system log rather than, or in addition to, a local file. AIDE has no built-in mail transport; syslog is its native mechanism for directing the report to the system logging service.
So wird geprüft
Prüfmethode: Shell-Befehl
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep -P '"'"'^\h*report_url'"'"' /etc/aide.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- 'A report_url directive sending the report to syslog should be returned, for example:' || { echo step1: missing 'A report_url directive sending the report to syslog should b'; return 1; }; }; if alt0; then echo compliant; fi- Erwartete Ausgabe
compliant
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Edit /etc/aide.conf and add a report_url directive that writes the check report to the system log, using a syslog facility that the system logging service is configured to collect (the local-use facilities LOG_LOCAL0 through LOG_LOCAL7 are commonly used for this): report_url=syslog:<facility> Example: report_url=syslog:LOG_LOCAL0 AIDE supports multiple report_url destinations, so an existing destination (such as report_url=file:/var/log/aide.log) may be kept alongside the syslog entry. Ensure the system logging service is configured to collect and retain the selected facility (see the logging recommendations) so the report is captured in the central log stream.
Eigenschaften
- Betriebssysteme
- almalinux-9
- Tags
- cis-convertedlinux
- Referenz
- CIS AlmaLinux OS 9 Benchmark v3.0.0 - 6.3.4
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
tmaegis scan --target linux