Linux distributions
TMA-RHEL9-6.3.4
Ensure report_url is configured
Описание
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.
Как проверяется
Метод проверки: Команда оболочки
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- Ожидаемый вывод
compliant
Как исправляется
Метод исправления: Рекомендация или патч инфраструктуры
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.
Свойства
- Операционные системы
- rhel-9
- Теги
- cis-convertedlinux
- Источник
- CIS Red Hat Enterprise Linux 9 Benchmark v3.0.0 - 6.3.4
Проверить этот хост
Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.
tmaegis scan --target linux