TMAegisBeta
更多 linux 规则

Linux distributions

TMA-ROCKY9-6.3.4

Ensure report_url is configured

中级别 1自动化linux

说明

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.

检查方式

审计方法: 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
预期输出
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.

属性

操作系统
rocky-9
标签
cis-convertedlinux
参考
CIS Rocky Linux 9 Benchmark v3.0.0 - 6.3.4

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target linux