TMAegisBeta
Aturan lainnya untuk linux

Linux distributions

TMA-RHEL9-6.3.4

Ensure report_url is configured

SedangLevel 1Otomatislinux

Deskripsi

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.

Cara pemeriksaan

Metode audit: Perintah shell

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
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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.

Properti

Sistem operasi
rhel-9
Tag
cis-convertedlinux
Referensi
CIS Red Hat Enterprise Linux 9 Benchmark v3.0.0 - 6.3.4

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target linux