TMAegisBeta
linux için daha fazla kural

Linux distributions

TMA-ALMA9-6.3.4

Ensure report_url is configured

OrtaDüzey 1Otomatiklinux

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
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
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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.

Özellikler

İşletim sistemleri
almalinux-9
Etiketler
cis-convertedlinux
Referans
CIS AlmaLinux OS 9 Benchmark v3.0.0 - 6.3.4

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target linux